| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- namespace Base
- {
- public enum SceneType
- {
- Share,
- Game,
- Login,
- Lobby,
- Map,
- Launcher,
- Robot,
- BehaviorTreeScene,
- RobotClient,
- Realm,
- Gate,
- }
- [ObjectEvent]
- public class SceneEvent : ObjectEvent<Scene>, IAwake<SceneType, string>
- {
- public void Awake(SceneType sceneType, string name)
- {
- this.GetValue().Awake(sceneType, name);
- }
- }
- public sealed class Scene: Component
- {
- public SceneType SceneType { get; set; }
- public string Name { get; set; }
- public void Awake(SceneType sceneType, string name)
- {
- this.SceneType = sceneType;
- this.Name = name;
- }
- public override void Dispose()
- {
- if (this.Id == 0)
- {
- return;
- }
- base.Dispose();
- }
- }
- }
|