void Start() { // adjust damage taken when leveling up theLS = FindObjectOfType <LegionStats>(); // avoid damage when player rushing legionController = FindObjectOfType <LegionController>(); }
void Start() { theLegion = FindObjectOfType <LegionController>(); if (theLegion.startPoint == pointName) { theLegion.transform.position = transform.position; // keep direction when changing areas theLegion.lastMove = startDirection; theCamera = FindObjectOfType <CameraController>(); theCamera.transform.position = new Vector3(transform.position.x, transform.position.y, theCamera.transform.position.z); } }
void Start() { // avoid damage when player rushing legionController = FindObjectOfType <LegionController>(); }
void Start() { // avoid movement when dialogue theLegion = FindObjectOfType <LegionController>(); }
void Start() { theLegion = FindObjectOfType <LegionController>(); }