示例#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>();
	}