浏览代码

Added Chaotic ball spawning

/ChaosMode
mikegeig 5 年前
当前提交
6423dc7d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      DOTS_Pong/Assets/Scripts/GameManager.cs

4
DOTS_Pong/Assets/Scripts/GameManager.cs


playerScores[playerID]++;
player0Text.text = playerScores[0].ToString();
player1Text.text = playerScores[1].ToString();
StartCoroutine(CountdownAndSpawnBall());
//StartCoroutine(CountdownAndSpawnBall());
}
IEnumerator CountdownAndSpawnBall()

mainText.text = "";
SpawnBall();
InvokeRepeating("SpawnBall", 0f, .01f);
}
void SpawnBall()

正在加载...
取消
保存