コード例 #1
0
        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;
        }
コード例 #2
0
 private void Start()
 {
     chickenMovement = GetComponent <ChickenMovement>();
     InvokeRepeating("CreateEgg", 1f, 5f);
 }