Ejemplo n.º 1
0
        public void Warp(PortalGate from)
        {
            PortalGate to = (from == firstGate ? secondGate : firstGate);

            to.Deactivate();
            PlayerInstanciationScript.playerTransform.position = to.transform.position;
        }
Ejemplo n.º 2
0
 private void Start()
 {
     firstGate  = GetComponentsInChildren <PortalGate>()[0].Init(this);
     secondGate = GetComponentsInChildren <PortalGate>()[1].Init(this);
 }