void Awake () { heroStrong = FindObjectOfType<HeroStrong>(); heroFast = FindObjectOfType<HeroFast>(); SelectionBoxCurrent = SelectionBox1; defaultColor = SelectionBox1.GetComponent<Renderer>().material.color; colorsPuzzle = this.GetComponent<ColorsPuzzle>(); }
void Awake() { heroStrong = FindObjectOfType <HeroStrong>(); heroFast = FindObjectOfType <HeroFast>(); SelectionBoxCurrent = SelectionBox1; defaultColor = SelectionBox1.GetComponent <Renderer>().material.color; colorsPuzzle = this.GetComponent <ColorsPuzzle>(); }