Symbol.Constructor C# (CSharp) Method

Constructor() public method

public Constructor ( Transform, parent, Vector2 position, Sprite, sprites, float scales ) : void
parent Transform,
position Vector2
sprites Sprite,
scales float
return void
    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;
    }