Fix anti/golden berry
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -229,7 +229,7 @@ public class AutoGamePlayer : MonoBehaviour {
|
||||
|
||||
float scale = (canvasRect.lossyScale.x + canvasRect.lossyScale.y) / 2f;
|
||||
float radius = antiLeft > 0f ? 250f * scale : 325f * scale;
|
||||
float speed = antiLeft > 0f ? 1.25f * scale : -1.75f * scale;
|
||||
float speed = antiLeft > 0f ? (300f * scale * Time.deltaTime) : -(420f * scale * Time.deltaTime);
|
||||
|
||||
foreach (string tag in berryTags) {
|
||||
foreach (var berry in GameObject.FindGameObjectsWithTag(tag)) {
|
||||
|
||||
@@ -186,7 +186,7 @@ public class CustomGamePlayer : MonoBehaviour {
|
||||
|
||||
float scale = (canvasRect.lossyScale.x + canvasRect.lossyScale.y) / 2f;
|
||||
float radius = antiLeft > 0f ? 250f * scale : 325f * scale;
|
||||
float speed = antiLeft > 0f ? 1.25f * scale : -1.75f * scale;
|
||||
float speed = antiLeft > 0f ? (300f * scale * Time.deltaTime) : -(420f * scale * Time.deltaTime);
|
||||
|
||||
foreach (string tag in berryTags) {
|
||||
foreach (var berry in GameObject.FindGameObjectsWithTag(tag)) {
|
||||
|
||||
@@ -172,7 +172,7 @@ public class GamePlayer : MonoBehaviour {
|
||||
|
||||
float scale = (canvasRect.lossyScale.x + canvasRect.lossyScale.y) / 2f;
|
||||
float radius = antiLeft > 0f ? 250f * scale : 325f * scale;
|
||||
float speed = antiLeft > 0f ? 1.25f * scale : -1.75f * scale;
|
||||
float speed = antiLeft > 0f ? (300f * scale * Time.deltaTime) : -(420f * scale * Time.deltaTime);
|
||||
|
||||
foreach (string tag in berryTags) {
|
||||
foreach (var berry in GameObject.FindGameObjectsWithTag(tag)) {
|
||||
|
||||
Reference in new issue
Block a user