// Use this for initialization
 void Awake()
 {
     _instance        = this;
     Cursor.visible   = false;
     Cursor.lockState = CursorLockMode.Locked;
     m_weaponSystem   = this.GetComponent <WeaponSystemLogic>();
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        m_weaponSystem = this.GetComponent <WeaponSystemLogic>();

        /* if(m_weaponSystem != null)
         *   m_weaponSystem.Init(m_weaponHolderGO.transform, 0, 0);*/

        m_currentHealth = m_totalhealth;
        StartCoroutine(MoveTowardPlayer());
    }
Example #3
0
 // Use this for initialization
 void Awake()
 {
     _instance            = this;
     m_playerWeaponSystem = PlayerController.Instance.gameObject.GetComponent <WeaponSystemLogic>();
 }