void DuringGame() { currentDirection = player.currentDirection; if (currentDirection == PlayerController.Direction.Down) { posTxt.text = "Fear"; negTxt.text = "Pity"; } else if (currentDirection == PlayerController.Direction.Up) { posTxt.text = "Joy"; negTxt.text = "Sorrow"; } else if (currentDirection == PlayerController.Direction.Left) { posTxt.text = "Surprise"; negTxt.text = "Intimidate"; } else if (currentDirection == PlayerController.Direction.Right) { posTxt.text = "Admiration"; negTxt.text = "Anger"; } if (player.currentEnemy == null) { enemyEmo.enabled = false; } else { currentEnemyEmo = player.currentEnemy.currentEnemyEmotes; enemyEmo.enabled = true; if (currentEnemyEmo == EnemyController.EnemyEmotes.Admire) { enemyEmo.text = "Admiration"; } else if (currentEnemyEmo == EnemyController.EnemyEmotes.Anger) { enemyEmo.text = "Anger"; } else if (currentEnemyEmo == EnemyController.EnemyEmotes.Conflicted) { enemyEmo.text = "Conflicted"; } else if (currentEnemyEmo == EnemyController.EnemyEmotes.Confusion) { enemyEmo.text = "Confusion"; } else if (currentEnemyEmo == EnemyController.EnemyEmotes.Dizzy) { enemyEmo.text = "Stunned"; } else if (currentEnemyEmo == EnemyController.EnemyEmotes.Fear) { enemyEmo.text = "Fear"; } else if (currentEnemyEmo == EnemyController.EnemyEmotes.Idea) { enemyEmo.text = "Focused"; } else if (currentEnemyEmo == EnemyController.EnemyEmotes.Intimidation) { enemyEmo.text = "Intimidation"; } else if (currentEnemyEmo == EnemyController.EnemyEmotes.Joy) { enemyEmo.text = "Joy"; } else if (currentEnemyEmo == EnemyController.EnemyEmotes.Pity) { enemyEmo.text = "Pity"; } else if (currentEnemyEmo == EnemyController.EnemyEmotes.Singing) { enemyEmo.text = "Humming"; } else if (currentEnemyEmo == EnemyController.EnemyEmotes.Sorrow) { enemyEmo.text = "Sorrow"; } else if (currentEnemyEmo == EnemyController.EnemyEmotes.Surprise) { enemyEmo.text = "Surprise"; } else if (currentEnemyEmo == EnemyController.EnemyEmotes.Tired) { enemyEmo.text = "Tired"; } } }
// Update is called once per frame void Update() { currentEmote = enemy.GetCurrentEmote(); if (currentEmote == EnemyController.EnemyEmotes.NoHealth) { image.texture = NoHealth; } else if (currentEmote == EnemyController.EnemyEmotes.Admire) { image.texture = Admire; } else if (currentEmote == EnemyController.EnemyEmotes.Anger) { image.texture = Anger; } else if (currentEmote == EnemyController.EnemyEmotes.Conflicted) { image.texture = Conflicted; } else if (currentEmote == EnemyController.EnemyEmotes.Confusion) { image.texture = Confusion; } else if (currentEmote == EnemyController.EnemyEmotes.Dizzy) { image.texture = Dizzy; } else if (currentEmote == EnemyController.EnemyEmotes.Fear) { image.texture = Fear; } else if (currentEmote == EnemyController.EnemyEmotes.Idea) { image.texture = Idea; } else if (currentEmote == EnemyController.EnemyEmotes.Intimidation) { image.texture = Intimidation; } else if (currentEmote == EnemyController.EnemyEmotes.Joy) { image.texture = Joy; } else if (currentEmote == EnemyController.EnemyEmotes.Pity) { image.texture = Pity; } else if (currentEmote == EnemyController.EnemyEmotes.Singing) { image.texture = Singing; } else if (currentEmote == EnemyController.EnemyEmotes.Sorrow) { image.texture = Sorrow; } else if (currentEmote == EnemyController.EnemyEmotes.Surprise) { image.texture = Surprise; } else if (currentEmote == EnemyController.EnemyEmotes.Tired) { image.texture = Tired; } }