public void ChangeWeaponState(WeaponStateEnum newState) { weaponState = newState; switch (weaponState) { case WeaponStateEnum.MeleeFinish: _animator.SetTrigger("MeleeFinish"); SwitchToRanged(); break; } }
private void SwitchToRanged() { rangedWeaponGO.SetActive(true); meleeGO.SetActive(false); weaponState = WeaponStateEnum.Ranged; }