// Use this for initialization void Awake() { _instance = this; Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; m_weaponSystem = this.GetComponent <WeaponSystemLogic>(); }
// 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()); }
// Use this for initialization void Awake() { _instance = this; m_playerWeaponSystem = PlayerController.Instance.gameObject.GetComponent <WeaponSystemLogic>(); }