예제 #1
0
 private void Start()
 {
     instance = instance ?? this;
     InvokeRepeating("OnTimerEverySecond", 1f, 1f);
     InvokeRepeating("OnTimerEveryHalfSecond", 1f, .5f);
     InvokeRepeating("OnTimerEvery250Millisecond", 1f, .25f);
 }
예제 #2
0
 private void Awake()
 {
     instance = instance ?? this;
 }