Example #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));
 }
Example #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);
        }
Example #3
0
        public LODRequest Request(LODRequestData requestData, bool attemptSpawn = true)
        {
            LODRequest lODRequest = generateRequest(requestData);

            if (attemptSpawn)
            {
                spawnSingle(lODRequest);
            }
            return(lODRequest);
        }
Example #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;
            }
        }
Example #6
0
        private void onGameObjectGenerated(GameObject remotePlayer, DataEntityHandle remotePlayerHandle, LODRequestData requestData)
        {
            LODWeightingCurve lODWeightingCurve = base.gameObject.AddComponent <LODWeightingCurve>();

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