Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        world       = GameObject.FindGameObjectWithTag("World");
        highScore01 = GameObject.FindGameObjectWithTag("SpawnerLevel01").GetComponent <HigScore>();

        if (world.name != "World1")
        {
            scoreHolder = highScore01.highscoreGame;
        }
    }
Пример #2
0
 private void Start()
 {
     PlayerStatus = GameObject.FindGameObjectWithTag("Player").GetComponent <playerStatus>();
     WorldScore   = GameObject.FindGameObjectWithTag("World").GetComponent <HigScore>();
 }