void Assign(GameObject Player) { poi.KnowMe(); myi.KnowMe(); gro.KnowMe(); kaleo.KnowMe(); }
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; }