diff options
author | chai <chaifix@163.com> | 2022-04-22 20:38:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-04-22 20:38:40 +0800 |
commit | edaeb4b7c681cc1654745e5a9be531a71088d1af (patch) | |
tree | a3dd1b1a2fc43caaec5cd3775bdf0f3423b39d97 /SurvivalTest/Assets/Scripts/Test/TestPeaceMaker.cs | |
parent | ded822e98e8eda49618d17e53407b0df1896e539 (diff) |
*rename folder
Diffstat (limited to 'SurvivalTest/Assets/Scripts/Test/TestPeaceMaker.cs')
-rw-r--r-- | SurvivalTest/Assets/Scripts/Test/TestPeaceMaker.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/SurvivalTest/Assets/Scripts/Test/TestPeaceMaker.cs b/SurvivalTest/Assets/Scripts/Test/TestPeaceMaker.cs index 11f76ba..6432354 100644 --- a/SurvivalTest/Assets/Scripts/Test/TestPeaceMaker.cs +++ b/SurvivalTest/Assets/Scripts/Test/TestPeaceMaker.cs @@ -237,11 +237,14 @@ public class TestPeaceMaker : MonoBehaviour { while (true) { + CreateBullet(TestMathHelper.Rotate(m_AimDirection, -10 * Mathf.Deg2Rad), 12f, 2f); + yield return new WaitForSeconds(interval / 3f); + CreateBullet(m_AimDirection, 12f, 2f); - //CreateBullet(TestMathHelper.Rotate(m_AimDirection, 10 * Mathf.Deg2Rad), 12f, 2f); - //CreateBullet(TestMathHelper.Rotate(m_AimDirection, -10 * Mathf.Deg2Rad), 12f, 2f); + yield return new WaitForSeconds(interval / 3f); - yield return new WaitForSeconds(interval); + CreateBullet(TestMathHelper.Rotate(m_AimDirection, 10 * Mathf.Deg2Rad), 12f, 2f); + yield return new WaitForSeconds(interval / 3f); } } |