private void ActionTrigger(Sprite sprite, LeverAction action) { spriteRenderer.sprite = sprite; if (action != null) { action(); } }
void Start() { throttle = transform.Find("Throttle/LeverArm").GetComponent <LeverAction>(); ignition = transform.Find("Ignition").GetComponent <ButtonAction>(); choke = transform.Find("Choke").GetComponent <PushPullAction>(); exhaust = GetComponent <ParticleSystem>(); SetOutput(); }
void Start() { throttle = transform.Find("Rudder/LeverArm").GetComponent <LeverAction>(); }
void Start () { clutch = transform.Find("Clutch/LeverArm").GetComponent<LeverAction>(); }