public void Constructor(Transform parent, Vector2 position, Sprite[] sprites, float[] scales) { this.spriteRenderer = GetComponent<SpriteRenderer> (); this.transform.SetParent (parent); this.transform.localPosition = position; this.transform.localPosition -= new Vector3 (0, 0, 0.00001f); this.sprites = sprites; this.scales = scales; }