From deafa1107f096a562b8ae7a9e2481a43a0d6a745 Mon Sep 17 00:00:00 2001 From: Yunasawa Date: Sat, 18 May 2024 23:31:07 +0700 Subject: [PATCH] New version --- Main/AI Behaviours/AIBehaviour.cs | 3 +- Sample/Sample Behaviour.asset | 54 +------------------------------ package.json | 2 +- 3 files changed, 4 insertions(+), 55 deletions(-) diff --git a/Main/AI Behaviours/AIBehaviour.cs b/Main/AI Behaviours/AIBehaviour.cs index f975aa1..a15b112 100644 --- a/Main/AI Behaviours/AIBehaviour.cs +++ b/Main/AI Behaviours/AIBehaviour.cs @@ -5,6 +5,7 @@ #if UNITY_EDITOR using UnityEditor.Callbacks; using UnityEditor; +using YNL.SimpleAISystem.Editors; #endif using UnityEngine; @@ -23,7 +24,7 @@ public static bool OnOpenAsset(int instanceID) AIBehaviour asset = EditorUtility.InstanceIDToObject(instanceID) as AIBehaviour; if (asset != null) { - //WAIBehaviourEditor_Main.ShowWindow(asset); + WAIBehaviourEditor_Main.ShowWindow(asset); return true; } return false; diff --git a/Sample/Sample Behaviour.asset b/Sample/Sample Behaviour.asset index 43501dd..5c5d472 100644 --- a/Sample/Sample Behaviour.asset +++ b/Sample/Sample Behaviour.asset @@ -12,56 +12,4 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: eee765f67661ed44da870bebe9175412, type: 3} m_Name: Sample Behaviour m_EditorClassIdentifier: - StateKeys: - - Name: Idle - Actions: - - Label: DoNothing - Properties: - _keys: [] - _values: [] - - Label: PlayAnimation - Properties: - _keys: - - Animation - - PlayMode - _values: - - Idle - - Immediate - Transitions: - - Label: TimeInState - True: Walk - False: - Properties: - _keys: - - UsingAnimationTime - - LimitTime - _values: - - False - - 2 - - Name: Walk - Actions: - - Label: LookAtTarget - Properties: - _keys: - - LookAtType - _values: - - OnUpdate - - Label: PlayAnimation - Properties: - _keys: - - Animation - - PlayMode - _values: - - Walk - - Immediate - Transitions: - - Label: DistanceToTarget - True: Idle - False: - Properties: - _keys: - - Comparison - - Distance - _values: - - Greater - - 5 + StateKeys: [] diff --git a/package.json b/package.json index e799c08..f07f59b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.yunasawa.ynl.simpleaisystem", "displayName": "YNL - Simple AI System", - "version": "1.1.5", + "version": "1.1.6", "unity": "2022.3", "description": "YNL - Simple AI System provides you a simple system to handle objects' behaviours as an AI.", "keywords": [