Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     sPos        = transform.position;
     laPos       = "Left";
     timer       = 0;
     player      = GameObject.FindGameObjectWithTag("Player");
     WorldSwitch = (WorldSwitch)GameObject.FindGameObjectWithTag("WorldSwitch").GetComponent("WorldSwitch");
 }
Exemplo n.º 2
0
 private void Awake()
 {
     if (instance)
     {
         Debug.LogError("2+ WorldSwitchers found!");
     }
     instance = this;
 }
Exemplo n.º 3
0
 void Start()
 {
     gameController = GameObject.FindWithTag("GameController");
     worldSwitch    = gameController.GetComponent <WorldSwitch>();
     checkpoint     = gameController.GetComponent <checkpoints>();
 }