Skip to content

Commit

Permalink
New version
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunasawa committed May 18, 2024
1 parent 171dabe commit deafa11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 55 deletions.
3 changes: 2 additions & 1 deletion Main/AI Behaviours/AIBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#if UNITY_EDITOR
using UnityEditor.Callbacks;
using UnityEditor;
using YNL.SimpleAISystem.Editors;
#endif
using UnityEngine;

Expand All @@ -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;
Expand Down
54 changes: 1 addition & 53 deletions Sample/Sample Behaviour.asset
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit deafa11

Please sign in to comment.