private void OnBuild(Event_UIBuild e) { EventSystem.RemoveListener <Event_UIBuild>(OnBuild); this.MakeBuilding(new Building(GameState.Instance.habitatSprite, null, null, RESOURCE_TYPE.LASAGNA, MENU_FLAGS.UPGRADE | MENU_FLAGS.WORKER, true)); }
void OnUIBuild(Event_UIBuild e) { Deactivate(); }