コード例 #1
0
ファイル: BattleView.cs プロジェクト: TeamJelly/project21
        private void Awake()
        {
            instance = this;

            hPBarPrefab = Resources.Load <GameObject>("Prefabs/UI/HP_BAR");
            //ThisTurnUnitInfo = transform.Find("Panel/ThisTurnUnitInfo").GetComponent<UnitInfoView>();
            //OtherUnitInfo = transform.Find("Panel/OtherUnitInfo").GetComponent<UnitInfoView>();
            //OtherUnitInfo.gameObject.SetActive(false);
            turnEndButton   = transform.Find("MainPanel/TurnEndButton").GetComponent <Button>();
            unitControlView = GetComponent <UnitControlView>();

            TurnEndButton.gameObject.SetActive(false);
            DownStairButton.gameObject.SetActive(false);

            UnitControlView.panel.SetActive(false);
        }
コード例 #2
0
 // Start is called before the first frame update
 private void Awake()
 {
     instance = this;
     InitUI();
 }