示例#1
0
 public void Execute(VfxSystem system)
 {
     foreach (var behavior in behaviors)
     {
         behavior.Execute(system, this);
     }
 }
    // Start is called before the first frame update
    void Awake()
    {
        Properties       = properties;
        PlayerController = InitSystem <PlayerController>();
        GameCharacter    = InitSystem <GameCharacterSystem>();
        ObjectSpawner    = InitSystem <ObjectSpawner>();
        Projectiles      = InitSystem <ProjectileSystem>();
        Colliders        = InitSystem <CollidersSystem>();
        NpcSystem        = InitSystem <NpcSystem>();
        RespawnSystem    = InitSystem <RespawnSystem>();
        VFX = InitSystem <VfxSystem>();


        systems.ForEach(system => system.Init());
        systems.ForEach(system => system.Start());
        GameStarted = true;
        StartEvent?.Invoke();
        Cursor.visible   = false;
        Cursor.lockState = CursorLockMode.Confined;
    }
示例#3
0
 public override void Execute(VfxSystem system, VfxConfig config)
 {
 }
示例#4
0
 public virtual void Execute(VfxSystem system, VfxConfig config)
 {
 }