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; }
public override void Execute(VfxSystem system, VfxConfig config) { }
public virtual void Execute(VfxSystem system, VfxConfig config) { }