private void ResetChicken(ChickenManager c) { temP = inEgde ? area.GetRandomPointInEdge() : area.GetRandomPointInArea(); c.transform.position = temP.position; c.transform.rotation = temP.rotation; c.autoMoveForward = autoMove; }
// Use this for initialization void Start() { gameManager = GameObject.Find("GameManager").GetComponent <GameManager>(); chickenManager = gameManager.gameObject.GetComponent <ChickenManager>(); taskCreator = gameManager.gameObject.GetComponent <TaskCreator>(); loadedResources = gameManager.gameObject.GetComponent <LoadedResources>(); chicken = GetComponent <Chicken>(); ai = GetComponent <AIPath>(); if (age == 0) { birthMoment = gameManager.time; } }
private void Start() { _seedManager = GetComponent <SeedManager>(); _chickenManager = GetComponent <ChickenManager>(); timer = 0; }
private void Start() { gameManager = GameObject.Find("GameManager").GetComponent <GameManager>(); chickenManager = GameObject.Find("GameManager").GetComponent <ChickenManager>(); }
// Use this for initialization void Start() { chickenManager = GameObject.Find("GameManager").GetComponent <ChickenManager>(); taskCreator = GameObject.Find("GameManager").GetComponent <TaskCreator>(); StartCoroutine(PassTime()); }