You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
410 B
16 lines
410 B
4 years ago
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class AlongWindCheck {
|
||
|
public static event Func<Vector3, IntData, IntData> alongWindCheck;
|
||
|
public static int CheckPos(Vector3 pos)
|
||
|
{
|
||
|
IntData data = new IntData(0);
|
||
|
if (alongWindCheck != null)
|
||
|
data = alongWindCheck(pos, data);
|
||
|
return data.value;
|
||
|
}
|
||
|
}
|