Beispiel #1
0
    public GameObject Create(string name, int x, int y)
    {
        GameObject obj = Instantiate(chessPiece, new Vector3(0, 0, -1), Quaternion.identity);
        Chessman cm = obj.GetComponent<Chessman>();

        cm.name = name;
        cm.setBoardX(x);
        cm.setBoardY(y);
        cm.activate();

        return obj;
    }