private GameObject m_CanvasGameObject; // Used to disable the world space UI during the Starting and Ending phases of each round. public void Setup() { // Get references to the components. m_Movement = m_Instance.GetComponent <ChickenMovement>(); m_CanvasGameObject = m_Instance.GetComponentInChildren <Canvas>().gameObject; }
private void Start() { chickenMovement = GetComponent <ChickenMovement>(); InvokeRepeating("CreateEgg", 1f, 5f); }