public void PlayAttackSequence(GameObject playerChar, AttackSequence attackSequence) { ninjaAttackSequence_1 = attackSequence; ninjaAttackSequence_1.Initialize(playerChar); // getting the trigger component script attached to 'playerChar' ninjaAttackSequence_1.TriggerAbility(); }