// Use this for initialization
 void Start()
 {
     anim = this.GetComponent<Animator>();
     lastPos = transform.position;
     tinker = GameObject.Find("tinker").GetComponent<tinker>();
     shipCtrl = GameObject.Find("ship").GetComponent<shipControl>();
     shipAudio = GameObject.Find("ship").GetComponent<shipSound>();
 }
 void Start()
 {
     sun = GameObject.Find("sun");
     ship = GameObject.Find("ship");
     shipCtrl = ship.GetComponent<shipControl>();
     tinker = GameObject.Find("tinker").GetComponent<tinker>();
     centre = sun.transform.position;
     anim = GetComponent<Animator>();
 }
예제 #3
0
 void Start()
 {
     tinker = GameObject.Find("tinker").GetComponent<tinker>();
     shipCtrl = GameObject.Find("ship").GetComponent<shipControl>();
 }