Пример #1
0
 private void Awake()
 {
     if (Instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         Instance = this;
     }
 }
Пример #2
0
        private void Start()
        {
            lives              = availableLives;
            ballManager        = HawkBallsManager.Instance;
            brickManager       = HawkBrickManager.Instance;
            collectableManager = HawkCollectableManager.Instance;

            Screen.SetResolution(540, 900, false);
            HawkBall.onDeath             += onDeath;
            HawkBrick.onBrickDestruction += brickDestruction;
        }
Пример #3
0
 private void Start()
 {
     brickManager = HawkBrickManager.Instance;
 }