Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (IsInMouth)
     {
         GameObject _scout = null;                                        //cleanup why do we have to pass null to this function?
         _scout = Character_Manager.GetClosestCharacterTypeWithRawTransform(this.transform, CharacterType.Scout, _scout, float.PositiveInfinity);
         this.transform.position = _scout.transform.GetChild(0).position; //get the actual scout, not the scout manager
     }
     else if (IsInHand)
     {
         this.transform.position = Character_Manager.GetPlayer().transform.position;
     }
 }