Symbol.SetSymbol C# (CSharp) Method

SetSymbol() public method

public SetSymbol ( int symbol ) : void
symbol int
return void
    public void SetSymbol(int symbol)
    {
        this.symbol = symbol;
        this.name = ""+symbol;
        this.spriteRenderer.sprite = this.sprites[symbol];
        this.transform.localScale = Vector3.one*scales [symbol];
        this.transform.eulerAngles = Vector3.forward*UnityEngine.Random.value*360;
    }