예제 #1
0
 // Use this for initialization
 void Awake()
 {
     battleControlScript      = battleController.GetComponent <BattleControl>();
     dialogue                 = GetComponent <BattleDialogue>();
     battleStateControlScript = battleController.GetComponent <BattleStateControl>();
     textUIControl            = GetComponent <BattleTextUIControl>();
     newMovePanel.SetActive(false);
 }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        battleControl  = GetComponent <BattleControl>();
        cameraControl  = FindObjectOfType <BattleCameraControl>();
        uiController   = battleUI.GetComponent <BattleUIControl>();
        uiTextControl  = battleUI.GetComponent <BattleTextUIControl>();
        uiHPControl    = battleUI.GetComponent <BattleHPControl>();
        battleDialogue = battleUI.GetComponent <BattleDialogue>();
        uIEventHandler = FindObjectOfType <BattleUIEventHandler>();
        soundManager   = FindObjectOfType <SoundManager>();

        dataCont   = GameObject.Find("GameDataController");
        playerData = dataCont.GetComponent <PlayerDataHolder>();
    }