1
This commit is contained in:
18
Unity/Scripts/Node/BITKit.Node.Unity.asmdef
Normal file
18
Unity/Scripts/Node/BITKit.Node.Unity.asmdef
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "BITKit.Node.Unity",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:a209c53514018594f9f482516f2a6781",
|
||||
"GUID:517785bb4600a5140b47eac5fa49b8fc",
|
||||
"GUID:14fe60d984bf9f84eac55c6ea033a8f4"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
22
Unity/Scripts/Node/MonoCondition.cs
Normal file
22
Unity/Scripts/Node/MonoCondition.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
namespace BITKit
|
||||
{
|
||||
public class MonoCondition : MonoBehaviour, ICondition, IAction
|
||||
{
|
||||
public bool isSuccess;
|
||||
public void Excute()
|
||||
{
|
||||
isSuccess = true;
|
||||
}
|
||||
public bool OnCheck()
|
||||
{
|
||||
return isSuccess;
|
||||
}
|
||||
public void Reset()
|
||||
{
|
||||
isSuccess = false;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user