摘要:
一、EventFunction using System; namespace EventCore { public struct EventFunction { public object _caller; public Action _action; } public struct EventF 阅读全文
摘要:
一、ECCore 需要在Unity项目中使用插件:UniRx,通过UniRx代替Mono的Update,Mono下做轮询性能消耗会有点大。 EntityMono代码: using System; using System.Collections.Generic; using EC; using Un 阅读全文
摘要:
一、面向对象和类 面向对象(OOP)是一种编程范式,他把具体的事物抽象成对象,我们通过编写对应的类去实例化对象,类是对象的模板,类不是对象,类是对一类对象的抽象出来的模板。 想象这样一个场景:在unity开发中写一个角色控制器去控制角色,代码可能会这么写: using UnityEngine; pu 阅读全文