示例#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;
 }
 public void Initialize()
 {
     this.conveyerController   = ConveyerController.Instance;
     this.fruitsManager        = FruitsManager.Instance;
     this.spriteRendererOffset = this.gameObject.GetComponent <SpriteRenderer>();
 }