Esempio n. 1
0
    private GameObject CreatePiece(string name)
    {
        GameObject obj = Instantiate(gamePiece, new Vector3(0, 0 - 2), Quaternion.identity);
        GamePiece  gp  = obj.GetComponent <GamePiece>();

        gp.name = name;
        gp.Activate();
        return(obj);
    }