Beispiel #1
0
 public void LadderStart(GameObject hero, GameObject ladder)
 {
     this.hero   = hero;
     this.ladder = ladder;
     wordDisplay.StartDisplay(OnTextCompleted, timerLength: 0f);
     string[] splitString = encouragements.GetPhrase().Split(null);
     encouragePhrase = new List <string>(splitString);
     ladderState     = LadderStates.InputSetup;
 }
Beispiel #2
0
    public void CombatStart(GameObject hero, GameObject enemy)
    {
        var levelOfRoom = GameObject.Find("TowerManager").GetComponent <LevelManager>().currentFloor;

        this.hero      = hero;
        this.tempEnemy = enemy;

        SetWordDifficulty(GetTrueRoomLevel(levelOfRoom));
        SetEnemyHealth(tempEnemy.name, GetTrueRoomLevel(levelOfRoom));

        healthBarV2 = Instantiate(enemyBarPrefab, new Vector3(tempEnemy.transform.position.x, tempEnemy.transform.position.y + 2f, tempEnemy.transform.position.z + 1.5f), Quaternion.Euler(0, -90, 0));

        wordDisplay.StartDisplay(OnTextCompleted, OnTimerExpired, OnIncorrectLetter);

        combatState = CombatStates.InputSetup;
    }