示例#1
0
 public CustomFixedUpdate(float aTimeStep, OnFixedUpdateCallback aCallback, float aMaxAllowedTimestep)
 {
     if (aCallback == null)
     {
         throw new System.ArgumentException("CustomFixedUpdate needs a valid callback");
     }
     if (aTimeStep <= 0f)
     {
         throw new System.ArgumentException("TimeStep needs to be greater than 0");
     }
     deltaTime            = aTimeStep;
     m_Callback           = aCallback;
     m_MaxAllowedTimeStep = aMaxAllowedTimestep;
 }
示例#2
0
 public CustomFixedUpdate(OnFixedUpdateCallback aCallback, float aFPS) : this(aCallback, aFPS, 0f)
 {
 }
示例#3
0
 public CustomFixedUpdate(OnFixedUpdateCallback aCallback, float aFPS, float aMaxAllowedTimestep) : this(1f / aFPS, aCallback, aMaxAllowedTimestep)
 {
 }
示例#4
0
 public CustomFixedUpdate(OnFixedUpdateCallback aCallback) : this(0.01f, aCallback, 0f)
 {
 }
示例#5
0
 public CustomFixedUpdate(float aTimeStep, OnFixedUpdateCallback aCallback) : this(aTimeStep, aCallback, 0f)
 {
 }