public void Reset() { if (randomizer == null) { randomizer = GetComponent <RandomizeSprite>(); } if (iconSnapScript == null) { iconSnapScript = GetComponent <IconSnapToGrid>(); } IsClickedOn = false; HoverOverBin = false; randomizer.Randomize(); StartCoroutine(GrowIn()); popIn.Play(); }
// Use this for initialization void Start() { randomizer = GetComponent <RandomizeSprite>(); iconSnapScript = GetComponent <IconSnapToGrid>(); }