// Use this for initialization
 void Start()
 {
     myFOV = transform.FindChild("FOV").GetComponent<PetFieldOfView>();
     myInventory = GameObject.Find("PetGarden").GetComponent<Inventory>();
 }
Пример #2
0
    void Start()
    {
        myPetObject = this.gameObject;

        FOV = transform.FindChild("PetFOV").GetComponent<PetFieldOfView>();

        petStats = GameObject.Find("PetGarden").GetComponent<PetStats>();
        petBelly = GameObject.Find("PetGarden").GetComponent<PetBelly>();
        petInventory = GameObject.Find("PetGarden").GetComponent<Inventory>();

        myEnergy = petBelly.GetMaxEnergy();
    }