using System.Collections; using System.Collections.Generic; using UnityEngine; public class MainLogic : MonoBehaviour { public FlyLogic fl; public RotateLogic rl; // Start is called before the first frame update void Start() { Application.targetFrameRate = 60; } // Update is called once per frame void Update() { if (Input.GetMouseButtonDown(0)) { } if (Input.GetKeyDown(KeyCode.W)) { fl.Fly(); rl.Turn(1); } else if (Input.GetKeyDown(KeyCode.S)) { fl.Land(); rl.Turn(-1); } } }