2025-10-03 00:02:43 -04:00
|
|
|
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
|
|
|
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
namespace Lofelt.NiceVibrations
|
|
|
|
|
{
|
|
|
|
|
public class BallDemoManager : DemoManager
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[Header("Ball")]
|
|
|
|
|
public Vector2 Gravity = new Vector2(0, -30f);
|
|
|
|
|
|
|
|
|
|
protected virtual void Start()
|
|
|
|
|
{
|
2025-10-23 00:49:44 -04:00
|
|
|
#if MM_PHYSICS2D
|
2025-10-03 00:02:43 -04:00
|
|
|
Physics2D.gravity = Gravity;
|
2025-10-23 00:49:44 -04:00
|
|
|
#endif
|
2025-10-03 00:02:43 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|