// void SwitchEffects(string effectName) { // if (currentVisualEffect != null) { // currentVisualEffect.End (); // } // currentVisualEffect = EffectFollow.Create (effectName, transform); // } // // void RemoveEffect() { // currentVisualEffect.End (); // currentVisualEffect = null; // } void TrySwapWeapons() { if (shooting.hasWeapon && GameObject.FindObjectOfType <PlayerController>().TrySwapWeapons(shooting.GetWeaponData())) { shooting.RemoveWeapon(); } }