/// <summary> /// Called by ShapeManager immediately after spawning /// </summary> /// <param name="hits">Hits.</param> /// <param name="type">Type.</param> public override void Init(int hits, Utility.SpawnTypes type) { base.Init(hits, type); SetText(hits.ToString()); _comboManager = GameObject.FindGameObjectWithTag("Combo").GetComponent <Combos> (); }
/// <summary> /// Called by ShapeManager immediately after spawning /// </summary> /// <param name="hits">Hits.</param> /// <param name="type">Type.</param> public override void Init(int hits, Utility.SpawnTypes type) { base.Init(hits, type); _colorShiftRate = GameManager.instance.SpawnManager.ColorShiftRate; _colorScale = GameManager.instance.SpawnManager.ColorDifficultyScale; SetText(hits.ToString()); // Color c = CalculateColor(); // gameObject.GetComponent<SpriteRenderer>().material.color = c; // gameObject.GetComponent<SpriteRenderer>().material = mat; //// GetComponent<SpriteRenderer>().color = Color.red; _comboManager = GameObject.FindGameObjectWithTag("Combo").GetComponent <Combos> (); }
public virtual void Init(int hits, Utility.SpawnTypes type) { this.hits = hits; }
public override void Init(int hits, Utility.SpawnTypes type) { base.Init(hits, type); }