public PlayerAction disableAction; // Action which turns this effect off // (usually the execution of the next step) public void Init(Player player, PlayerAction disableAction) { base.Init(player); this.disableAction = disableAction; disableAction.OnExecutedAction += DisableEffect; }