public void RemoveConsiderationObject(ICommandable commandable) { if (!this._considerationObjects.Contains(commandable)) { return; } commandable.SetImpossible(false, (Actor)Singleton <Manager.Map> .Instance.Player); this._considerationObjects.Remove(commandable); }
public void RemoveCommandableObject(ICommandable commandable) { if (this._commandableObjects.Contains(commandable)) { this._commandableObjects.Remove(commandable); } if (this._considerationObjects.Contains(commandable)) { commandable.SetImpossible(false, (Actor)Singleton <Manager.Map> .Instance.Player); this._considerationObjects.Remove(commandable); } if (this._collisionStateTable.ContainsKey(commandable.InstanceID)) { this._collisionStateTable.Remove(commandable.InstanceID); } this.RefreshCommands(); }