示例#1
0
    void Awake()
    {
        revertcraftingtab = true;



        defaultInput1        = Input1;
        defaultInput2        = Input2;
        defaultOutput        = Output;
        m_defaultCraftSprite = defaultInput1.sprite;

        input1b = true;
        input2b = true;

        uiManager = FindObjectOfType <UI.UIManager>();
        EventManager.Subscribe("Crafting", OnCrafting);
        EventManager.Subscribe("Craft", OnCraft);
        EventManager.Subscribe("Minerals", this.OnMinerals);
        EventManager.Subscribe("Food", this.OnFood);
        EventManager.Subscribe("CookedFood", this.OnCookedFood);
        EventManager.Subscribe("Gas", this.OnGas);
        EventManager.Subscribe("Fuel", this.OnFuel);
        EventManager.Subscribe("Steel", this.OnSteel);
        EventManager.Subscribe("Clear", this.OnClear);
    }
示例#2
0
 void Awake()
 {
     revertactionstab = true;
     uiManager        = FindObjectOfType <UI.UIManager>();
     EventManager.Subscribe("Actions", OnActions);
     EventManager.Subscribe("ActivateAbility", this.OnActivateAbility);
     EventManager.Subscribe("Harvest", this.OnHarvest);
     EventManager.Subscribe("Recall", this.OnRecall);
     EventManager.Subscribe("CancelAction", this.OnCancelAction);
     EventManager.Subscribe("SAExtract", this.OnSAExtract);
     EventManager.Subscribe("SAMiner", this.OnSAMiner);
     EventManager.Subscribe("SAUnit", this.OnSAUnit);
     EventManager.Subscribe("SAHarvest", this.OnSAHarvest);
 }
示例#3
0
    // Start is called before the first frame update
    void Start()
    {
        uiManager_ = UI.UIManager.Instance;

        // FOR TESTING
        int count = 10;

        Card[] testingCards = new Card[count];
        for (int i = 0; i < count; i++)
        {
            testingCards[i] = new Card("Testing " + i, i);
        }

        deck_        = new Pile(testingCards);
        discardPile_ = new Pile(new List <Card>());
        hand_        = new Hand();

        uiManager_.SetDrawDeck(testingCards);
    }
示例#4
0
 void Awake()
 {
     revertcraftingtab = true;
     uiManager         = FindObjectOfType <UI.UIManager>();
     Assets.Scripts.Managers.EventManager.Subscribe("Craft", OnCrafting);
 }
示例#5
0
 void Awake()
 {
     revertactionstab = true;
     uiManager        = FindObjectOfType <UI.UIManager>();
     Assets.Scripts.Managers.EventManager.Subscribe("Actions", OnActions);
 }
示例#6
0
 private void OnCloseClick()
 {
     GameManager.PlayButtonClickSound();
     UIManager.ClosePopPanel(this);
 }