コード例 #1
0
ファイル: LeviathanWeapon.cs プロジェクト: EricJSoler/astron
 ///Timing
 public void waitFor(float time, weaponDelegate doThisThenWait, weaponDelegate thenDoThis)
 {
     StartCoroutine(timedWait(time, doThisThenWait, thenDoThis));
 }
コード例 #2
0
ファイル: LeviathanWeapon.cs プロジェクト: EricJSoler/astron
 IEnumerator timedWait(float time, weaponDelegate doThisThenWait, weaponDelegate thenDoThis)
 {
     doThisThenWait();
     yield return new WaitForSeconds(time);
     thenDoThis();
 }