示例#1
0
    private void DoneHandler(Data data)
    {
        SceneItems.GetItem <CardManager>("CardManager").ReplaceAllowedList();

        gameObject.SetActive(false);
        SceneItems.GetItem("BoardSettings").SetActive(true);
    }
示例#2
0
 private void Start()
 {
     SceneItems.GetItem <TileWindow>("TilePanel").Initialize();
     SceneItems.GetItem <BoardSettingsWindow>("BoardSettings").Initialize();
     SceneItems.GetItem <CardSelectionWindow>("CardSelection").Initialize();
     SceneItems.GetItem <EditModeWindow>("EditModePanel").Initialize();
 }
示例#3
0
    private void Start()
    {
        tilePrefab = Resources.Load <GameObject>("Prefabs/TileButton");
        tilesPanel = SceneItems.GetItem <Transform>("TilePanel");

        Map.OperateOnTiles(LoadTile);
    }
示例#4
0
    private void Start()
    {
        type = EntityType.Player;

        actionPanel = SceneItems.GetItem("ActionPanel");
        EventManager.StartListening("EndTurnPressed", EndTurnHandler);
    }
示例#5
0
    public override void Initialize()
    {
        mapEditor = SceneItems.GetItem <MapEditor>("Map");

        enableKey = KeyCode.Alpha2;
        EventManager.StartListening("TileButtonPressed", TileButtonPressed);

        Engine.StartUpdating(this);
    }
示例#6
0
    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");
    }
示例#7
0
    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");
    }
示例#8
0
    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>();
    }
示例#9
0
 private void Start()
 {
     cam = SceneItems.GetItem <GameCamera>("GameCamera");
     turnDisplayPanel = SceneItems.GetItem("TurnDisplayPanel");
     turnText         = SceneItems.GetItem <Text>("TurnText");
 }
示例#10
0
 private void Start()
 {
     posLabel = SceneItems.GetItem <Text>("DebugPosition");
     EventManager.StartListening("StateChanged", StateChangedHandler);
 }
示例#11
0
 private void Start()
 {
     currentCardImage = SceneItems.GetItem <Image>("DisplayedCard");
     EventManager.StartListening("DrawCard", DrawCard);
     EventManager.StartListening("CardToggled", ToggleCard);
 }
示例#12
0
 private void SelectingCards(Data data)
 {
     gameObject.SetActive(false);
     SceneItems.GetItem("CardSelection").SetActive(true);
 }
示例#13
0
 private void Start()
 {
     myLabel = SceneItems.GetItem <Text>("DebugFPS");
 }
示例#14
0
 private void EditModeChanged(Data data)
 {
     SceneItems.GetItem <MapEditor>("Map").SetEditMode(data.num);
     gameObject.SetActive(false);
 }