// Use this for initialization void Start() { sW = sWG.gameObject.GetComponent ("ShowWish") as ShowWish; sR = this.GetComponent<SpriteRenderer> (); }
// Use this for initialization void Start() { sW = sWG.gameObject.GetComponent("ShowWish") as ShowWish; sR = this.GetComponent <SpriteRenderer> (); }