Пример #1
0
        private void Start()
        {
            normalEnd  = transform.GetChild(0).GetComponent <MirrorDoor>();
            madnessEnd = transform.GetChild(1).GetComponent <MirrorDoor>();

            normalEnd.SetTeleporter(this);
            madnessEnd.SetTeleporter(this);
        }
Пример #2
0
 public void Enter(MirrorDoor end)
 {
     if (!timedOut && end == normalEnd)
     {
         GoToMadness();
         StartCoroutine(TeleportationTimeout());
         // TODO : sound effect for transition ...
         // TODO 2 : maybe change the hub music ? ...
     }
     else if (!timedOut && end == madnessEnd)
     {
         GoToNormal();
         StartCoroutine(TeleportationTimeout());
         // TODO : sound effect for transition ...
         // TODO 2 : maybe change the hub music ? ...
     }
 }