public void TriggerEffect() { BodyPart[] bodyParts = _slot.ToBodyParts(); playerSpriteController.setBodyParts(bodyParts, _type); playerSpriteController.setEffect(_slot, _effect); PlayerSoundEffectPlayer.instance().playSound(_type); }
// Use this for initialization void Start() { INSTANCE = this; player = gameObject.AddComponent<RandomizedAudioPlayer>(); }
// Use this for initialization void Start() { INSTANCE = this; player = gameObject.AddComponent <RandomizedAudioPlayer>(); }