|
|
|
|
|
|
public const int defaultMaxTargetFrameRate = 60; |
|
|
|
public const int defaultMinTargetFrameRate = 15; |
|
|
|
|
|
|
|
static Action _onFrameRateSpeedUp = defaultFrateRateSpeedUp; |
|
|
|
static Action _onFrameRateSpeedUp = defaultFrameRateSpeedUp; |
|
|
|
_onFrameRateSpeedUp = defaultFrateRateSpeedUp; |
|
|
|
_onFrameRateSpeedUp = defaultFrameRateSpeedUp; |
|
|
|
} |
|
|
|
else { |
|
|
|
_onFrameRateSpeedUp = value; |
|
|
|
|
|
|
|
|
|
|
static void defaultFrateRateSpeedUp() { |
|
|
|
static void defaultFrameRateSpeedUp() { |
|
|
|
static Action _onFrameRateCoolDown = defaultFrateRateCoolDown; |
|
|
|
static Action _onFrameRateCoolDown = defaultFrameRateCoolDown; |
|
|
|
_onFrameRateCoolDown = defaultFrateRateCoolDown; |
|
|
|
_onFrameRateCoolDown = defaultFrameRateCoolDown; |
|
|
|
} |
|
|
|
else { |
|
|
|
_onFrameRateCoolDown = value; |
|
|
|
|
|
|
|
|
|
|
static void defaultFrateRateCoolDown() { |
|
|
|
static void defaultFrameRateCoolDown() { |
|
|
|
Application.targetFrameRate = defaultMinTargetFrameRate; |
|
|
|
} |
|
|
|
} |