initial upload
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace HeneGames.Airplane
|
||||
{
|
||||
public class SimpleAirPlaneCollider : MonoBehaviour
|
||||
{
|
||||
public bool collideSometing;
|
||||
|
||||
[HideInInspector]
|
||||
public SimpleAirPlaneController controller;
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.GetComponentInParent<RingCheckpoint>() != null)
|
||||
return;
|
||||
|
||||
if (other.gameObject.GetComponent<SimpleAirPlaneCollider>() == null &&
|
||||
other.gameObject.GetComponent<LandingArea>() == null)
|
||||
{
|
||||
collideSometing = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user