Beispiel #1
0
 void Start()
 {
     poi   = GameObject.FindGameObjectWithTag("poi").GetComponent <pyhsicsOfItems>();
     myi   = GameObject.FindGameObjectWithTag("myin").GetComponent <myInput>();
     gro   = GameObject.FindGameObjectWithTag("gro").GetComponent <groundCollision>();
     kaleo = GameObject.FindGameObjectWithTag("kaleo").GetComponent <kaleCollisionController>();
 }
Beispiel #2
0
 void Assign(GameObject Player)
 {
     myi = GameObject.FindGameObjectWithTag("myin").GetComponent <myInput>();
     myi.KnowMe(Player);
     gro = GameObject.FindGameObjectWithTag("gro").GetComponent <groundCollision>();
     gro.KnowMe(Player, myi);
     poi = GameObject.FindGameObjectWithTag("poi").GetComponent <pyhsicsOfItems>();
     poi.knowMe(Player, gro.gameObject, ballObj);
     Player.GetComponent <MyCharacterController>().poi = poi;
 }