void OnTriggerExit(Collider other) { if (other.name.Equals("GunPoint") || other.name.Equals("EnginePoint")) { State = CrankState.None; } }
void OnTriggerEnter(Collider other) { if (other.name.Equals("GunPoint")) { State = CrankState.Gun; } if (other.name.Equals("EnginePoint")) { State = CrankState.Engine; } }
void Start() { State = CrankState.Engine; }