breakpoint

before update unity version
This commit is contained in:
CortexCore
2024-03-04 18:45:21 +08:00
parent e2fbb14dd5
commit 9ad58a2ff4
5423 changed files with 14757 additions and 653 deletions

View File

@@ -1,4 +1,6 @@
namespace BITKit
using System;
namespace BITKit
{
public interface IAwake { void OnAwake(); }
@@ -23,7 +25,11 @@
public interface IFixedUpdate { void OnFixedUpdate(float deltaTime); }
public interface ILateUpdate { void OnLateUpdate(float deltaTime); }
public interface IDestroy { void OnDestroyComponent(); }
[Serializable]
public struct EmptyAction : IAction
{
public void Execute() { }
}
public class BehaviorUpdater
{

View File

@@ -1,8 +1,11 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Linq;
namespace BITKit
{
public interface IReference
{
string Get();

View File

@@ -41,11 +41,18 @@ namespace BITKit
public bool Allow => this;
private bool enableHandle;
private readonly List<object> objs = new List<object>();
private readonly List<object> disableObjs = new List<object>();
/// <summary>
/// ⚠Dont operate this field directly
/// </summary>
public readonly List<object> objs = new List<object>();
/// <summary>
/// ⚠Dont operate this field directly
/// </summary>
public readonly List<object> disableObjs = new List<object>();
private bool tempEnable;
private Action<bool> EventOnEnableChanged;
public void AddElement(object obj)
{
if (objs.Contains(obj))