Exemplo n.º 1
0
 public LODRequest Request(LODRequestData requestData, bool attemptSpawn = true)
 {
     if (Manager == null)
     {
         throw new ArgumentException("Called Request with a null entity", "manager");
     }
     return(Manager.Request(requestData, attemptSpawn));
 }
Exemplo n.º 2
0
        private LODRequest generateRequest(LODRequestData requestData)
        {
            GameObject gameObject = pool.Spawn();
            LODRequest component  = gameObject.GetComponent <LODRequest>();

            component.Data = requestData;
            component.Setup();
            Requests.Add(component);
            return(component);
        }
Exemplo n.º 3
0
        public LODRequest Request(LODRequestData requestData, bool attemptSpawn = true)
        {
            LODRequest lODRequest = generateRequest(requestData);

            if (attemptSpawn)
            {
                spawnSingle(lODRequest);
            }
            return(lODRequest);
        }
Exemplo n.º 4
0
 public LODRequest Request(LODRequestData requestData, bool attemptSpawn = true)
 {
     return(getRequestSystem(requestData.Type).Request(requestData, attemptSpawn));
 }
        private void onGameObjectGenerated(GameObject remotePlayer, DataEntityHandle remotePlayerHandle, LODRequestData requestData)
        {
            LocomotionEventBroadcaster component = remotePlayer.GetComponent <LocomotionEventBroadcaster>();

            if (component != null)
            {
                component.OnDoActionEvent += onLocomotionBroadcasterDoAction;
            }
        }
Exemplo n.º 6
0
        private void onGameObjectGenerated(GameObject remotePlayer, DataEntityHandle remotePlayerHandle, LODRequestData requestData)
        {
            LODWeightingCurve lODWeightingCurve = base.gameObject.AddComponent <LODWeightingCurve>();

            lODWeightingCurve.CurveData = Data.CurveData;
            lODWeightingCurve.Setup();
        }