public override void OnStart() { this.m_type = WeaponMgr.WeaponType.Horse; WeaponMgr.AddWeapon(this); if (WeaponMgr.ACTIVE_WEAPON) { WeaponMgr.ACTIVE_WEAPON.gameObject.SetActive(false); } WeaponMgr.ACTIVE_WEAPON = this; WeaponMgr.ACTIVE_WEAPON.gameObject.SetActive(true); MuzzleFlash.SetActive(false); m_anim = transform.GetComponent <Animator>(); }
public override void OnStart() { this.m_type = WeaponMgr.WeaponType.Automatic; WeaponMgr.AddWeapon(this); if (WeaponMgr.ACTIVE_WEAPON) { WeaponMgr.ACTIVE_WEAPON.gameObject.SetActive(false); } WeaponMgr.ACTIVE_WEAPON = this; WeaponMgr.ACTIVE_WEAPON.gameObject.SetActive(true); Debug.Log("AKK"); if (MuzzleFlash != null) { MuzzleFlash.SetActive(false); } m_anim = transform.GetComponent <Animator>(); }