I have two scripts attached to my player. One is Movement (self-explanitory). The other handles the player encountering enemies (called Encounters). The Encounters detects if an enemy is within the player's collider range and if so is supposed to stop the player from moving, and ask if the player wants to battle the enemy. However, it's not disabling the Movement script component.
GetComponent<>().enable Not Working!!!
Code (CSharp):
- using UnityEngine;
- using System.Collections;
- using UnityEngine.UI;
- public class Encounter :...