public static void AddInvoker_Battle_PropelHitTarget(PropelObject propelScript) { invokers_Battle_PropelHitTarget.Add(propelScript); //if (listeners_SpeedUpFX != null) foreach (UnityAction <int, int, BattleMode> listener in listeners_Battle_PropelHitTarget) { propelScript.AddListener_Battle_PropelHitTarget(listener); } }
// Stores the caster as well as the usual Propel() public void PropelShoot(int battleID, Vector2 startPosition, PropelObject casterPropel, GameObject targetObj, int targetID, BattleMode mode) { Propel(battleID, startPosition, targetObj, targetID, mode); casterPropelObject = casterPropel; }