Esempio n. 1
0
 private void Awake()
 {
     playerCtrl = GameObject.FindGameObjectWithTag("Player").GetComponent <MyPlayerControl>();
 }
Esempio n. 2
0
 private void Awake()
 {
     Player = this;
 }
Esempio n. 3
0
 private void Start()
 {
     playerControl = GameObject.Find("hero").GetComponent <MyPlayerControl>();
 }
Esempio n. 4
0
 private void Awake()
 {
     Player        = this;
     mouseFollower = GetComponentInChildren <MouseFollower>();
 }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     player        = GameObject.Find("hero");
     playerControl = player.GetComponent <MyPlayerControl>();
     GetComponentInChildren <ParticleSystem>().Play();
 }