Format again
This commit is contained in:
3 files changed
+6
-3
No files matched your search
@@ -330,7 +330,8 @@ public class AutoGamePlayer : MonoBehaviour {
|
|||||||
|
|
||||||
var allBerries = Tools.GetAllBerries(berryParent.transform);
|
var allBerries = Tools.GetAllBerries(berryParent.transform);
|
||||||
|
|
||||||
if (!pausePanel.activeSelf) foreach (GameObject berry in allBerries) {
|
if (!pausePanel.activeSelf)
|
||||||
|
foreach (GameObject berry in allBerries) {
|
||||||
if (berry.GetComponent<RectTransform>().anchoredPosition.y < -(canvasRect.rect.height / 2) - berry.GetComponent<RectTransform>().rect.height) {
|
if (berry.GetComponent<RectTransform>().anchoredPosition.y < -(canvasRect.rect.height / 2) - berry.GetComponent<RectTransform>().rect.height) {
|
||||||
noGravityBerries.Remove(berry.GetInstanceID());
|
noGravityBerries.Remove(berry.GetInstanceID());
|
||||||
Destroy(berry);
|
Destroy(berry);
|
||||||
|
|||||||
@@ -496,7 +496,8 @@ public class CustomGamePlayer : MonoBehaviour {
|
|||||||
|
|
||||||
var allBerries = Tools.GetAllBerries(berryParent.transform);
|
var allBerries = Tools.GetAllBerries(berryParent.transform);
|
||||||
|
|
||||||
if (!pausePanel.activeSelf) foreach (GameObject berry in allBerries) {
|
if (!pausePanel.activeSelf)
|
||||||
|
foreach (GameObject berry in allBerries) {
|
||||||
if (berry.GetComponent<RectTransform>().anchoredPosition.y < -(canvasRect.rect.height / 2) - berry.GetComponent<RectTransform>().rect.height) {
|
if (berry.GetComponent<RectTransform>().anchoredPosition.y < -(canvasRect.rect.height / 2) - berry.GetComponent<RectTransform>().rect.height) {
|
||||||
noGravityBerries.Remove(berry.GetInstanceID());
|
noGravityBerries.Remove(berry.GetInstanceID());
|
||||||
Destroy(berry);
|
Destroy(berry);
|
||||||
|
|||||||
@@ -276,7 +276,8 @@ public class GamePlayer : MonoBehaviour {
|
|||||||
|
|
||||||
var allBerries = Tools.GetAllBerries(berryParent.transform);
|
var allBerries = Tools.GetAllBerries(berryParent.transform);
|
||||||
|
|
||||||
if (!pausePanel.activeSelf) foreach (GameObject berry in allBerries) {
|
if (!pausePanel.activeSelf)
|
||||||
|
foreach (GameObject berry in allBerries) {
|
||||||
if (berry.GetComponent<RectTransform>().anchoredPosition.y < -(canvasRect.rect.height / 2) - berry.GetComponent<RectTransform>().rect.height) {
|
if (berry.GetComponent<RectTransform>().anchoredPosition.y < -(canvasRect.rect.height / 2) - berry.GetComponent<RectTransform>().rect.height) {
|
||||||
noGravityBerries.Remove(berry.GetInstanceID());
|
noGravityBerries.Remove(berry.GetInstanceID());
|
||||||
Destroy(berry);
|
Destroy(berry);
|
||||||
|
|||||||
Reference in new issue
Block a user