示例#1
0
文件: Backward.cs 项目: abd1121/FYP
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
示例#2
0
 private void Start()
 {
     forward = GameObject.Find("Forward").GetComponent <NewBehaviourScript>();
     back    = GameObject.Find("Backward").GetComponent <Backward>();
     bbrake  = GameObject.Find("Brake").GetComponent <brake>();
     NewBehaviourScript.instance.SetPlayer(this.gameObject);
     brake.instance.SetPlayer(this.gameObject);
     Backward.instance.SetPlayer(this.gameObject);
 }