Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        characterUI = GameObject.Find("CharacterUiPanels").GetComponent <CharacterUIManager>();

        characterInventory = gameObject.GetComponentInChildren <CharacterInventory>();
        characterStats     = gameObject.GetComponentInChildren <CharacterStats>();

        characterUI.LoadUi(characterInventory, characterStats);
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        if (dontDestroyOnLoad)
        {
            DontDestroyOnLoad(this.gameObject);
        }
        if (!isLocalPlayer)
        {
            return;
        }
        CharacterUIManager UI = FindObjectOfType <CharacterUIManager> ();

        UI.playerChoose = this;

        CmdAdd();
    }