Example #1
0
 bool TryGetFrameSkipper()
 {
     if (_frameSkipper)
     {
         return(true);
     }
     else
     {
         _frameSkipper = GetComponent <UpdateFrameSkipper>();
         return(_frameSkipper);
     }
 }
Example #2
0
 void ConfigureFrameSkipper()
 {
     _frameSkipper = gameObject.AddComponent <UpdateFrameSkipper>();
     _frameSkipper.Config(UpdateFrameSkipper.UpdateType.Normal);
 }