Exemple #1
0
        protected override void Start()
        {
            base.Start();

            m_homePosition = gameObject.transform.position;
            m_citizenBody  = gameObject.GetComponent <CitizenBody>();

            m_currentState = new Idle(this);

            TimeOutside = 0f;
        }
Exemple #2
0
 public void Start()
 {
     m_parent = transform.parent.gameObject.GetComponent <CitizenBody>();
 }