This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class RespawnDialogue : MonoBehaviour { | |
private List<string> deathLines = new List<string>(); | |
private List<string> enemyDeathLines = new List<string>(); | |
private List<string> pitDeathLines = new List<string>(); | |
private List<string> deathBlockDeathLines = new List<string>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In PlayerScript: | |
// Sprite direction | |
if (xInput > 0) { | |
transform.rotation = Quaternion.Euler (0, 0, 0); | |
} else if (xInput < 0) { | |
transform.rotation = Quaternion.Euler (0, 180, 0); | |
} | |
// Aiming |