Framwork/Assets/TouchScript/Examples/Portal/Scripts/Vortex.cs

19 lines
387 B
C#
Raw Normal View History

2025-06-04 22:49:37 +08:00
/*
* @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();
}
}
}