// Use this for initialization void Start() { Locator00Sprite = Locator00Trans.GetComponent <SpriteRenderer>(); Locator01Sprite = Locator01Trans.GetComponent <SpriteRenderer>(); Locator00Trans.localScale = Locator01Trans.localScale = Vector3.zero; HideAll(); }
public void HideAll(float time = 1) { StopAllCoroutines(); ChangeAlpha(Locator00Sprite, 255, 0, time); ChangeAlpha(Locator01Sprite, 255, 0, time); temp = 0; Locator00Trans.SetParent(StartLocationPos); Locator01Trans.SetParent(StartLocationPos); Locator00Trans.localPosition = Locator01Trans.localPosition = Vector3.zero; Locator00Trans.localScale = Locator01Trans.localScale = Vector3.zero; }