Esempio n. 1
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>();
    }
    private void Start()
    {
        eventHandler   = GetComponent <BattleUIEventHandler>();
        battleDialogue = GetComponent <BattleDialogue>();
        continueButton.interactable = true;

        if (masterSettings.TextSpeed == TextSpeed.Slow)
        {
            characterDelay = 0.1f;
        }
        else if (masterSettings.TextSpeed == TextSpeed.Normal)
        {
            characterDelay = 0.05f;
        }
        else
        {
            characterDelay = 0.02f;
        }
    }
 private void Start()
 {
     eventHandler = GetComponent <BattleUIEventHandler>();
 }