Esempio n. 1
0
        public override void InstallBindings()
        {
            MultiplayerPlayersManager playersManager = Container.Resolve <MultiplayerPlayersManager>();

            playersManager.GetField <MultiplayerConnectedPlayerFacade, MultiplayerPlayersManager>("_connectedPlayerControllerPrefab").GetComponentInChildren <MultiplayerAvatarPoseController>().gameObject.AddComponent <CustomAvatarController>();
            playersManager.GetField <MultiplayerConnectedPlayerFacade, MultiplayerPlayersManager>("_connectedPlayerDuelControllerPrefab").GetComponentInChildren <MultiplayerAvatarPoseController>().gameObject.AddComponent <CustomAvatarController>();
        }
        public override void InstallBindings()
        {
            MultiplayerPlayersManager playersManager = Container.Resolve <MultiplayerPlayersManager>();

            playersManager.GetField <MultiplayerLocalActivePlayerFacade, MultiplayerPlayersManager>("_activeLocalPlayerControllerPrefab").gameObject.AddComponent <MultiplayerActivePlayer>();
            playersManager.GetField <MultiplayerLocalActivePlayerFacade, MultiplayerPlayersManager>("_activeLocalPlayerDuelControllerPrefab").gameObject.AddComponent <MultiplayerActivePlayer>();
            playersManager.GetField <MultiplayerConnectedPlayerFacade, MultiplayerPlayersManager>("_connectedPlayerControllerPrefab").gameObject.AddComponent <MultiplayerActivePlayer>();
            playersManager.GetField <MultiplayerConnectedPlayerFacade, MultiplayerPlayersManager>("_connectedPlayerDuelControllerPrefab").gameObject.AddComponent <MultiplayerActivePlayer>();
        }