LMQT/Assets/TouchScript/Examples/Portal/Scripts/Vortex.cs
2024-12-10 09:03:45 +08:00

19 lines
387 B
C#

/*
* @author Valentin Simonov / http://va.lent.in/
*/
using UnityEngine;
namespace TouchScript.Examples.Portal
{
/// <exclude />
public class Vortex : MonoBehaviour
{
private void OnTriggerEnter(Collider other)
{
var planet = other.GetComponent<Planet>();
if (planet == null) return;
planet.Fall();
}
}
}