示例#1
0
 void Awake()
 {
     middlePoint     = DisplayMetricsAndroid.WidthPixels / 2;
     brunoController = bruno.GetComponent <BrunoController>();
     spawner         = levelSpawner.GetComponent <LevelBlockSpawner>();
     waitingToStart  = !spawner.isSpawnLevel;
     pauseScript     = pauseScreen.GetComponent <PauseScript>();
     Debug.Log("Bruno controls on awake");
 }
示例#2
0
    void Awake()
    {
        if (Instance != null)
        {
            Debug.LogError("Multiple instances of LevelBlockSpawner");
        }

        Instance = this;
    }