Beispiel #1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Destroy(this);
         return;
     }
     planetUnlocker = GetComponent <PlanetUnlocker>();
     LoadSymbols();
 }
Beispiel #2
0
    private void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else
        {
            Destroy(gameObject);
            return;
        }

        planetUnlocker = GetComponent <PlanetUnlocker>();
        planetPrefabs  = GetComponent <PlanetPrefabHandler>();
        player         = FindObjectOfType <Player>();
        inputHandler   = new InputHandler(this);
        state          = States.Playing;
    }