Esempio n. 1
0
 private void Start()
 {
     player       = GameObject.FindGameObjectWithTag("Player");
     playerSprite = player.GetComponent <SpriteRenderer>();
     god          = GameObject.Find("gOD").GetComponent <NewGodScript>();
     print(god.playerRecord);
     print(god.playerRecord.effectsRecord);
     record = god.playerRecord.effectsRecord.EffectWithName("Invisible");
 }
 // Start is called before the first frame update
 void Start()
 {
     aggroRecord = new List <EnemyChaseTimeRec>();
     foreach (GameObject enemy in GameObject.FindGameObjectsWithTag("Enemy"))
     {
         aggroRecord.Add(new EnemyChaseTimeRec(enemy));
     }
     godTimeForEnemy    = 0;
     playerTrs          = GameObject.FindWithTag("Player").transform;
     gscript            = GameObject.Find("gOD").GetComponent <NewGodScript>();
     timeBetweenRecords = gscript.timeBetweenRecords;
 }
Esempio n. 3
0
    // Start is called before the first frame update
    void Start()
    {
        // Create list of gimmicks
        List <GameObject> tempGimms = new List <GameObject>();

        tempGimms.AddRange(GameObject.FindGameObjectsWithTag("gimmick"));
        tempGimms.AddRange(GameObject.FindGameObjectsWithTag("gimmickNonWall"));

        // Create list of their initial states
        List <bool> tempInitialStates = new List <bool>();

        foreach (GameObject tempGimm in tempGimms)
        {
            tempInitialStates.Add(tempGimm.GetComponent <StateStorage>().state);
        }

        // Create updates from these two
        updates    = new UpdatesContainer(tempGimms, tempInitialStates);
        oldUpdates = new UpdatesContainer(tempGimms, tempInitialStates);
        oldUpdates = new UpdatesContainer(tempGimms, tempInitialStates);

        // Makes god reference to the level's godScript
        god = GameObject.Find("gOD").GetComponent <NewGodScript>();
    }
Esempio n. 4
0
 private void Start()
 {
     godEnvironment = GameObject.Find("gOD").GetComponent <NewGodScriptEnvironment>();
     god            = GameObject.Find("gOD").GetComponent <NewGodScript>();
 }
 // Start is called before the first frame update
 void Start()
 {
     gameOver       = GameObject.FindGameObjectWithTag("Player").GetComponent <GameOver>();
     god            = GameObject.FindGameObjectWithTag("god").GetComponent <NewGodScript>();
     godEnvironment = GameObject.FindGameObjectWithTag("god").GetComponent <NewGodScriptEnvironment>();
 }
Esempio n. 6
0
 // Start is called before the first frame update
 void Start()
 {
     onMachine      = false;
     god            = GameObject.Find("gOD").GetComponent <NewGodScript>();
     godEnvironment = GameObject.Find("gOD").GetComponent <NewGodScriptEnvironment>();
 }
Esempio n. 7
0
 // Start is called before the first frame update
 void Start()
 {
     gscript = GameObject.FindGameObjectWithTag("god").GetComponent <NewGodScript>();
 }