Esempio n. 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);
    }
Esempio n. 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);
 }
Esempio n. 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);
    }
Esempio n. 4
0
 void Awake()
 {
     revertcraftingtab = true;
     uiManager         = FindObjectOfType <UI.UIManager>();
     Assets.Scripts.Managers.EventManager.Subscribe("Craft", OnCrafting);
 }
Esempio n. 5
0
 void Awake()
 {
     revertactionstab = true;
     uiManager        = FindObjectOfType <UI.UIManager>();
     Assets.Scripts.Managers.EventManager.Subscribe("Actions", OnActions);
 }
Esempio n. 6
0
 private void OnCloseClick()
 {
     GameManager.PlayButtonClickSound();
     UIManager.ClosePopPanel(this);
 }