Skip to content

Instantly share code, notes, and snippets.

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>();
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