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