void Start() { // TODO: // pause = GetComponent <Something> (); elementToSelectorGameObjectDict = new Dictionary <Elements.elemEnum, GameObject>(); elementToHandSpriteDict = new Dictionary <Elements.elemEnum, Sprite>(); fireLevelController = FindObjectOfType <FireLevelController>(); waterLevelController = FindObjectOfType <WaterLevelController>(); earthLevelController = FindObjectOfType <EarthLevelController>(); windLevelController = FindObjectOfType <WindLevelController>(); elementToSelectorGameObjectDict = new Dictionary <Elements.elemEnum, GameObject>(); elementToSelectorGameObjectDict.Add(Elements.elemEnum.none, null); elementToSelectorGameObjectDict.Add(Elements.elemEnum.fire, fireSelector); elementToSelectorGameObjectDict.Add(Elements.elemEnum.water, waterSelector); elementToSelectorGameObjectDict.Add(Elements.elemEnum.earth, earthSelector); elementToSelectorGameObjectDict.Add(Elements.elemEnum.wind, windSelector); elementToHandSpriteDict.Add(Elements.elemEnum.none, emptyHandSprite); elementToHandSpriteDict.Add(Elements.elemEnum.fire, fireHandSprite); elementToHandSpriteDict.Add(Elements.elemEnum.water, waterHandSprite); elementToHandSpriteDict.Add(Elements.elemEnum.earth, earthHandSprite); elementToHandSpriteDict.Add(Elements.elemEnum.wind, windHandSprite); }
protected override void Start() { base.Start(); StartCoroutine(SendCollisionAfterDelay()); //playerScore = FindObjectOfType<PlayerScoreController>(); fireLevelController = FindObjectOfType <FireLevelController>(); waterLevelController = FindObjectOfType <WaterLevelController>(); earthLevelController = FindObjectOfType <EarthLevelController>(); windLevelController = FindObjectOfType <WindLevelController>(); }
protected override void Start() { base.Start(); LoopingAudioSource.Play(); gameManager = FindObjectOfType <GameManager>(); //playerScore = FindObjectOfType<PlayerScoreController>(); fireLevelController = FindObjectOfType <FireLevelController>(); waterLevelController = FindObjectOfType <WaterLevelController>(); earthLevelController = FindObjectOfType <EarthLevelController>(); windLevelController = FindObjectOfType <WindLevelController>(); nextTickTimer = Time.time; }