add
This commit is contained in:
1609
Assets/CoolapeFrame/AIPath/Scene/AIPathByRay.unity
Normal file
1609
Assets/CoolapeFrame/AIPath/Scene/AIPathByRay.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/CoolapeFrame/AIPath/Scene/AIPathByRay.unity.meta
Normal file
7
Assets/CoolapeFrame/AIPath/Scene/AIPathByRay.unity.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6f68193448376454c976d90d3d5c37e5
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
28
Assets/CoolapeFrame/AIPath/Scene/AITargetTest.cs
Normal file
28
Assets/CoolapeFrame/AIPath/Scene/AITargetTest.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Coolape;
|
||||
|
||||
public class AITargetTest : MonoBehaviour
|
||||
{
|
||||
public CLAStarPathSearch aStar;
|
||||
public int radius = 10;
|
||||
|
||||
// Use this for initialization
|
||||
void Start()
|
||||
{
|
||||
Invoke("resetPosition", NumEx.NextInt(10, 50) / 10);
|
||||
}
|
||||
|
||||
public void resetPosition()
|
||||
{
|
||||
if (aStar != null)
|
||||
{
|
||||
int index = NumEx.NextInt(0, aStar.grid.NumberOfCells);
|
||||
transform.position = aStar.grid.GetCellCenter(index);
|
||||
} else {
|
||||
transform.position = new Vector3(NumEx.NextInt(-radius * 10, radius*10)/10.0f, 0, NumEx.NextInt(-radius * 10, radius * 10) / 10.0f);
|
||||
}
|
||||
Invoke("resetPosition", NumEx.NextInt(20, 80) / 10);
|
||||
}
|
||||
}
|
||||
11
Assets/CoolapeFrame/AIPath/Scene/AITargetTest.cs.meta
Normal file
11
Assets/CoolapeFrame/AIPath/Scene/AITargetTest.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 71bf33ae109b4411897082bcb5e0ee1b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
1645
Assets/CoolapeFrame/AIPath/Scene/AStarPathSearch.unity
Normal file
1645
Assets/CoolapeFrame/AIPath/Scene/AStarPathSearch.unity
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3947ec55087e946f2ab115f2dd418786
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user