Пример #1
0
 private void ActionTrigger(Sprite sprite, LeverAction action)
 {
     spriteRenderer.sprite = sprite;
     if (action != null)
     {
         action();
     }
 }
Пример #2
0
    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();
    }
Пример #3
0
 void Start()
 {
     throttle = transform.Find("Rudder/LeverArm").GetComponent <LeverAction>();
 }
Пример #4
0
	void Start () {
		clutch = transform.Find("Clutch/LeverArm").GetComponent<LeverAction>();
	}