public void OnRemoval() { //Have our observer clear out any active subscriptions we're still holding onto observer.EndAllObservations(); foreach (Replacement rep in lstReplacements) { //For each replacement effect this soul effect has, unregister it so it'll stop taking effect Replacement.Unregister(rep); } RemoveEffect(); bRemoved = true; if (ContSkillEngine.bDEBUGENGINE) { Debug.Log(sName + " has been removed"); } if (ShouldTriggerExpiration()) { ExpirationEffect(); if (ContSkillEngine.bDEBUGENGINE) { Debug.Log(sName + " has expired"); } } }
public override void OnLeave() { //Since we're leaving the stun state, we no longer need to cancel out stuns Replacement.Unregister(repStun); }