// Use this for initialization
 void Start()
 {
     myFOV = transform.FindChild("FOV").GetComponent<PetFieldOfView>();
     myInventory = GameObject.Find("PetGarden").GetComponent<Inventory>();
 }
Ejemplo n.º 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();
    }