Ejemplo n.º 1
0
    public UIProcessor(UISystem system, GameObject instance) : base(system, instance)
    {
        this.profile = new UIProfile(GameObject);

        SubProcessors.Add(new ScoreProcessor(system, this.profile));
        SubProcessors.Add(new HealthProcessor(system, this.profile));
    }
Ejemplo n.º 2
0
    public LocalProcessor(LocalSystem system, GameObject instance) : base(system, instance)
    {
        this.profile              = new LocalProfile(GameObject);
        this.parentSystem         = (WorldSystem)System.Parent;
        this.shooter              = this.parentSystem.ShooterSystem.DeployInstance();
        this.shooter.Profile.IsAI = false;
        this.shooter.Profile.Rigidbody.position = new Vector3(50f, 0.5f, 50f);

        SubProcessors.Add(new LocalCameraProcessor(this.profile.CameraProfile, this.shooter));

        this.shooter.Dead += OnShooterDead;
    }
Ejemplo n.º 3
0
 public AudioProcessor(AudioSystem system, GameObject instance) : base(system, instance)
 {
     this.profile = new AudioProfile(GameObject);
     SubProcessors.Add(new ShootingProcessor(system, this.profile));
 }
Ejemplo n.º 4
0
    public WorldProcessor(WorldSystem system, GameObject instance) : base(system, instance)
    {
        this.profile = new WorldProfile(GameObject);

        SubProcessors.Add(new SpawnerProcessor(system, this.profile));
    }