Пример #1
0
    public MenuDialog SetupMenu()
    {
        GameObject uibattlePrefab = ResourcesPath.GetUIBattlePrefab("Menu");
        GameObject gameObject     = UnityEngine.Object.Instantiate <GameObject>(uibattlePrefab);
        Transform  transform      = gameObject.transform;
        BattleMenu component      = transform.GetComponent <BattleMenu>();

        this.helpDialogGO = component.helpDialogGO;
        this.battleMenu   = component;
        return(component.SetupMenu(base.transform));
    }
    public BattleDigimonEnemyStatus CreateStatusEnemy()
    {
        GameObject uibattlePrefab = ResourcesPath.GetUIBattlePrefab("Status_Enemy_M");
        GameObject gameObject     = UnityEngine.Object.Instantiate <GameObject>(uibattlePrefab);
        Transform  transform      = gameObject.transform;

        transform.SetParent(this.leftParent);
        transform.localPosition = new Vector3(308f, 243f, 0f);
        transform.localScale    = Vector3.one;
        return(gameObject.GetComponent <BattleDigimonEnemyStatus>());
    }
    public void CreateMonsterButtons()
    {
        GameObject uibattlePrefab = ResourcesPath.GetUIBattlePrefab("MonsterButtons");

        this.monsterButtonRoot = UnityEngine.Object.Instantiate <GameObject>(uibattlePrefab);
        Transform transform = this.monsterButtonRoot.transform;

        transform.SetParent(this.leftParent);
        transform.localPosition = new Vector3(0f, 92f, 0f);
        transform.localScale    = Vector3.one;
    }
    private void CreateRetireObject()
    {
        GameObject uibattlePrefab = ResourcesPath.GetUIBattlePrefab("DialogRetire");
        GameObject gameObject     = UnityEngine.Object.Instantiate <GameObject>(uibattlePrefab);
        Transform  transform      = gameObject.transform;

        this.SetupDialogs(transform);
        transform.localPosition = new Vector3(2f, 0f, 0f);
        transform.localScale    = Vector3.one;
        this.dialogRetire       = gameObject.GetComponent <DialogRetire>();
        gameObject.SetActive(false);
    }