コード例 #1
0
    /// <summary>
    /// 初始化骰子
    /// </summary>
    private async void InitialDice()
    {
        string     dicePath = "Dice";
        GameObject Obj      = await ABManager.GetAssetAsync <GameObject>(dicePath);

        Transform  tra     = ZillionairePlayerManager._instance.CurrentPlayer.transform.parent;
        GameObject diceObj = Instantiate(Obj, tra);

        _diceController = diceObj.GetComponent <DiceController>();
        _diceController.NotifyPlayDiceAnim(6, null);
        _diceController.InitIsThrow();
        //diceObj.SetActive(false);
    }