Exemplo n.º 1
0
        private void Awake()
        {
            //Register all our custom messages
            NetworkClient.RegisterHandler <PlayerDiedMessage>(PlayerDiedMessage);

            uiManager = GetComponent <PlayerUIManager>();
        }
Exemplo n.º 2
0
        private void Start()
        {
            if (!isLocalPlayer)
            {
                return;
            }

            uiManager = GetComponent <PlayerUIManager>();
        }
Exemplo n.º 3
0
        private void Start()
        {
            if (!isLocalPlayer)
            {
                return;
            }

            uiManager = GetComponent <PlayerUIManager>();
            CmdSetName(User.DefaultAccount.AccountName);
        }
Exemplo n.º 4
0
        private void Start()
        {
            weaponManager = GetComponent <WeaponManager>();
            playerManager = GetComponent <PlayerManager>();
            playerInput   = GetComponent <PlayerMovementManager>();
            uiManager     = GetComponent <PlayerUIManager>();

            GameSettings.SettingsUpdated += UpdateSettings;

            UpdateSettings();
        }