예제 #1
0
    public void InitializeProperties(string newShape, string newColor, int colNum, int rowNum)
    {
        shape = newShape;
        color = newColor;
        SpriteRenderer sr = GetComponent <SpriteRenderer> ();

        sr.sprite = shapeManager.GetSpriteByName(newShape);
        sr.color  = shapeManager.GetColorByName(newColor);
        col       = colNum;
        row       = rowNum;
    }