// 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; }
// 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; }
void Start() { enemyManager = GetComponent <EnemyManager>(); fruitManager = GetComponent <FruitsManager>(); spawningManager = GetComponent <SpawningManager>(); }
public void setFruitManager(FruitsManager val) { fruitManager = val; }
public void Initialize() { this.conveyerController = ConveyerController.Instance; this.fruitsManager = FruitsManager.Instance; this.spriteRendererOffset = this.gameObject.GetComponent <SpriteRenderer>(); }