Untitled
unknown
plain_text
3 years ago
451 B
13
Indexable
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PuyoRotate : MonoBehaviour
{
// Start is called before the first frame update
public int Degrees = 0;
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.Space))
if (Degrees == 0)
transform.Translate (-1, 1, 0);
Degrees = 90;
}
}Editor is loading...