Exemplo n.º 1
0
 void Start()
 {
     _checkpointSpawnScriptInstance = _checkpointSpawnObjectInstance.GetComponent <CheckpointsSpawn>();
     foreach (var obj in _checkpointSpawnScriptInstance._checkpointsList)
     {
         Debug.Log(obj.name);
     }
     _firstTrigger  = new int[_checkpointSpawnScriptInstance._checkpointsList.Count + 1];
     _secondTrigger = new int[_checkpointSpawnScriptInstance._checkpointsList.Count + 1];
     for (int i = 0; i <= _checkpointSpawnScriptInstance._checkpointsList.Count; i++)
     {
         _firstTrigger[i]  = -1;
         _secondTrigger[i] = -1;
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     _checkpointSpawnScriptInstance = _checkpointSpawnObjectInstance.GetComponent <CheckpointsSpawn>();
 }