![]() |
|
#1
|
|||
|
|||
![]()
if (Time.tickCounter() % 215999 == 432000)
if (Time.tickCounter() % 431999 == 648000) if (Time.tickCounter() % 647999 == 866000) You use the modulo operator in c# (http://en.wikipedia.org/wiki/Modulo_operation) So the result can never be greater or equal the divisor. The result of a modulo operation is the remainder of the division. For example 9 mod 3 is 0, 10 mod 3 is 1 11 mod 3 is 2 12 mod 3 is 0 13 mod 3 is 1 14 mod 3 is 2 15 mod 3 is 0 you see there will never be a result like three or greater. Same for your code your if clauses will never became true. Also check: double initTime = 0.0; Timeout(initTime += 30, () => { GamePlay.gpHUDLogCenter("10 July 1940 German bomber attack on sothwest England!"); } //<= missing ); double initTime = 0.0; Timeout(initTime += 30, ... doesn't make any sense to me. :/ if you want a 30sek delay simple use Timeout(30, () => Last edited by FG28_Kodiak; 07-18-2011 at 03:04 PM. |
![]() |
|
|