Пример #1
0
    // Use this for initialization
    void Start()
    {
        enemyManager     = GetComponent <EnemyManager>();
        fruitsManager    = GetComponent <FruitsManager>();
        interfaceManager = GetComponent <InterfaceManager>();
        gameIsOver       = false;

        currentLevel = 1;
        remainingTimeCurrentLevel = 30.0f;
        scoreToNextLevel          = 5;

        timeSinceLastSpawn = ravenWavePeriod - firstSpawnDelay;
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        conveyerManager   = ConveyerManager.Instance;
        fruitsManager     = FruitsManager.Instance;
        scoreManager      = ScoreManager.Instance;
        thiefManager      = ThiefManager.Instance;
        timerManager      = TimerManager.Instance;
        guiManager        = GUIManager.Instance;
        tutorialManager   = TutorialManager.Instance;
        bascketHitManager = BascketHitManager.Instance;
        textStreamer      = TextStreamer.Instance;

        this.InitializeAll();
    }
 private void Awake()
 {
     instance = this;
 }
Пример #4
0
 void Start()
 {
     enemyManager    = GetComponent <EnemyManager>();
     fruitManager    = GetComponent <FruitsManager>();
     spawningManager = GetComponent <SpawningManager>();
 }
Пример #5
0
 public void setFruitManager(FruitsManager val)
 {
     fruitManager = val;
 }
Пример #6
0
 public void Initialize()
 {
     this.conveyerController   = ConveyerController.Instance;
     this.fruitsManager        = FruitsManager.Instance;
     this.spriteRendererOffset = this.gameObject.GetComponent <SpriteRenderer>();
 }