更改文件架构
This commit is contained in:
19
Packages/Common~/Scripts/Node/BITKit.Node.Unity.asmdef
Normal file
19
Packages/Common~/Scripts/Node/BITKit.Node.Unity.asmdef
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "BITKit.Node.Unity",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:a209c53514018594f9f482516f2a6781",
|
||||
"GUID:517785bb4600a5140b47eac5fa49b8fc",
|
||||
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
|
||||
"GUID:9400d40641bab5b4a9702f65bf5c6eb5"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 44958952656bd0b4993fb3ff9cbb9bb8
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
22
Packages/Common~/Scripts/Node/MonoCondition.cs
Normal file
22
Packages/Common~/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;
|
||||
}
|
||||
}
|
||||
}
|
11
Packages/Common~/Scripts/Node/MonoCondition.cs.meta
Normal file
11
Packages/Common~/Scripts/Node/MonoCondition.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fef5890dc51c72f4d82d7ac9cd931103
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user