private void OnTriggerExit(Collider other)
 {
     Debug.Log("Exited trigger");
     if (other.tag == "Player" && mindWarp != null)
     {
         mindWarp.Deactivate();
         mindWarp = null;
     }
 }
 private void SelectMindWarp()
 {
     List<System.Type> mindWarpList = new List<System.Type>(){
         typeof(MultiCamRandomView),
         typeof(MultiCamPathView)
     };
     System.Type selMindWarp = mindWarpList[Random.Range(0, mindWarpList.Count)];
     mindWarp = (System.Activator.CreateInstance(selMindWarp)) as MindWarp;
 }
 private void OnDestroy()
 {
     if (mindWarp != null)
     {
         mindWarp.Deactivate();
         //Destroy(mindWarp);
         mindWarp = null;
     }
 }