Exemple #1
0
        public override IEnumerator Start()
        {
            Debug.Log("SelectedUnit State Active.");

            // Show Move and Strike buttons

            BattleSystem.UnitInterface.SetActive(true);
            BattleSystem.UnitInterface.transform.localPosition = BattleSystem.PanelPosition(BattleSystem.SelectedUnit.gameObject, 1f);

            yield return(new WaitForSeconds(0f));
        }
Exemple #2
0
        public override IEnumerator Start()
        {
            Debug.Log("SelectedBilding State Active.");

            BattleSystem.BuildingInterface.SetActive(true);
            BattleSystem.BuildingInterface.transform.localPosition = BattleSystem.PanelPosition(BattleSystem.SelectedBuilding, 1f);
            if (BattleSystem.SelectedBuilding.GetComponent <Factory>())
            {
                Debug.Log("Factory.");
                BattleSystem.SelectedBuilding.GetComponent <Factory>().factoryInterface = BattleSystem.FactoryProduce;
            }

            yield return(new WaitForSeconds(0f));
        }