using System; using UnityEngine; public override void Update () { if (Input.GetKey ("up") || Input.GetKey ("w")) { this.transform.Translate ((float)0, (float)0, 0.1f); } if (Input.GetKey ("down") || Input.GetKey ("s")) { this.transform.Translate ((float)0, (float)0, -0.1f); } if (Input.GetKey ("right") || Input.GetKey ("d")) { this.transform.Rotate ((float)0, (float)1, (float)0); } if (Input.GetKey ("left") || Input.GetKey ("a")) { this.transform.Rotate ((float)0, (float)-1, (float)0); } }