Exemplo n.º 1
0
        } = true;                                                       //Only used on the server

        public override void Awake()
        {
            base.Awake();
            playerNetworkActions = GetComponent <PlayerNetworkActions>();
            playerMove           = GetComponent <PlayerMove>();
            playerSprites        = GetComponent <PlayerSprites>();
            registerPlayer       = GetComponent <RegisterPlayer>();
            dynamicItemStorage   = GetComponent <DynamicItemStorage>();
            OnConsciousStateChangeServer.AddListener(OnPlayerConsciousStateChangeServer);
            registerPlayer.AddStatus(this);
        }
Exemplo n.º 2
0
        } = true;                                                       //Only used on the server

        public override void EnsureInit()
        {
            if (init)
            {
                return;
            }
            init = true;
            base.EnsureInit();
            playerNetworkActions = GetComponent <PlayerNetworkActions>();
            playerMove           = GetComponent <PlayerMove>();
            playerSprites        = GetComponent <PlayerSprites>();
            registerPlayer       = GetComponent <RegisterPlayer>();
            itemStorage          = GetComponent <ItemStorage>();
            equipment            = GetComponent <Equipment>();
            playerScript         = GetComponent <PlayerScript>();
            OnConsciousStateChangeServer.AddListener(OnPlayerConsciousStateChangeServer);
            registerPlayer.AddStatus(this);
        }
Exemplo n.º 3
0
    } = true;                                                   //Only used on the server

    private void Awake()
    {
        base.Awake();

        OnConsciousStateChangeServer.AddListener(OnPlayerConsciousStateChangeServer);
    }