// MouseManager => UnityEvents public void AttackTarget(GameObject target) { IAttackable attackable = target.GetComponent <IAttackable>(); if (attackable == null) { return; } attackable.OnAttack(gameObject); var attack = demoAttack.CreateAttack(gameObject, target); demoAttack.ExecuteAttackEffecs(gameObject, target, attack); }