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

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