示例#1
0
 void LeftRadius(IPerceivable perceivable)
 {
     if (occlusionType == OcclusionType.Computational && perceivable.canUpdateAI)
     {
         if (perceivable.myGameObject.activeSelf && perceivable.myGameInstance == myGameInstance)
         {
             perceivable.UpdateValues(-1, -1, -1, -1);
         }
     }
     else if (occlusionType == OcclusionType.Visual && perceivable.cullable)
     {
         perceivable.StartCulling();
     }
 }
示例#2
0
 void EnterRadius(IPerceivable perceivable)
 {
     if (occlusionType == OcclusionType.Computational && perceivable.canUpdateAI)
     {
         if (perceivable.myGameObject.activeSelf && perceivable.myGameInstance == myGameInstance)
         {
             perceivable.UpdateValues(aiUpdates.thinkTime, aiUpdates.targetTime, aiUpdates.perceptionTime, aiUpdates.attackTime);
         }
     }
     else if (occlusionType == OcclusionType.Visual && perceivable.cullable)
     {
         perceivable.StopCulling();
     }
 }