コード例 #1
0
    public void Bind(PlayerInstance player)
    {
        GameObject newPlayer = Instantiate(playerPrefab, transform.position, transform.localRotation) as GameObject;

        newPlayer.transform.SetParent(this.transform);
        newPlayer.transform.localScale = new Vector3(Scale, Scale, 1);
        PlayerUIController cardController = newPlayer.GetComponent <PlayerUIController>();

        cardController.Bind(player);
    }