private void DoneHandler(Data data) { SceneItems.GetItem <CardManager>("CardManager").ReplaceAllowedList(); gameObject.SetActive(false); SceneItems.GetItem("BoardSettings").SetActive(true); }
private void Start() { SceneItems.GetItem <TileWindow>("TilePanel").Initialize(); SceneItems.GetItem <BoardSettingsWindow>("BoardSettings").Initialize(); SceneItems.GetItem <CardSelectionWindow>("CardSelection").Initialize(); SceneItems.GetItem <EditModeWindow>("EditModePanel").Initialize(); }
private void Start() { tilePrefab = Resources.Load <GameObject>("Prefabs/TileButton"); tilesPanel = SceneItems.GetItem <Transform>("TilePanel"); Map.OperateOnTiles(LoadTile); }
private void Start() { type = EntityType.Player; actionPanel = SceneItems.GetItem("ActionPanel"); EventManager.StartListening("EndTurnPressed", EndTurnHandler); }
public override void Initialize() { mapEditor = SceneItems.GetItem <MapEditor>("Map"); enableKey = KeyCode.Alpha2; EventManager.StartListening("TileButtonPressed", TileButtonPressed); Engine.StartUpdating(this); }
public TriggerTile(ushort ID) { processor = SceneItems.GetItem <CommandProcessor>("CommandProcessor"); name = "Trigger"; tileID = ID; pathCost = 5; material = Resources.Load <Material>("TileMaterials/Trigger"); meshIndex = material.GetInt("_ID"); }
private void Start() { mainButtons = SceneItems.GetItem("MainButtons"); ShowMainButtons(); EventManager.StartListening("StateChanged", StateChangedHandler); selectedText = SceneItems.GetItem <Text>("SelectedTileText"); selectedText.text = Map.GetTileType(activeTile).Name; dragRect = SceneItems.GetItem <RectTransform>("DragRect"); }
private void Start() { Serializer.ListenForSave(SaveCommands); Serializer.ListenForLoad(LoadCommands); EventManager.StartListening("CodeFinished", SaveCode); EventManager.StartListening("MapCleared", ClearCommands); EventManager.StartListening("GetCommandCoords", GetCommandCoords); codeEditor = SceneItems.GetItem("CodeEditor"); editorField = codeEditor.GetComponent <CodeEditor>(); }
private void Start() { cam = SceneItems.GetItem <GameCamera>("GameCamera"); turnDisplayPanel = SceneItems.GetItem("TurnDisplayPanel"); turnText = SceneItems.GetItem <Text>("TurnText"); }
private void Start() { posLabel = SceneItems.GetItem <Text>("DebugPosition"); EventManager.StartListening("StateChanged", StateChangedHandler); }
private void Start() { currentCardImage = SceneItems.GetItem <Image>("DisplayedCard"); EventManager.StartListening("DrawCard", DrawCard); EventManager.StartListening("CardToggled", ToggleCard); }
private void SelectingCards(Data data) { gameObject.SetActive(false); SceneItems.GetItem("CardSelection").SetActive(true); }
private void Start() { myLabel = SceneItems.GetItem <Text>("DebugFPS"); }
private void EditModeChanged(Data data) { SceneItems.GetItem <MapEditor>("Map").SetEditMode(data.num); gameObject.SetActive(false); }