public bool OnEntitySelection(Entity entity) { if (entity.GetEntityType() == "Tile") { currentAction = allowedActions["Move"]; } if (currentAction.ValidateSelection(entity) == false) { return(false); } currentAction.PreformAction(entity); currentAction = fallbackAction; return(true); }