public override void ClickCubeEventHandler(ClickCubeEvent data) { base.ClickCubeEventHandler(data); _cubeClicker.ClickCube(data.Target.Id); CubeSpawn.Cubes.Remove(data.Target); UpdateHUD(); }
/// <summary> // This method is executed when using this.Publish(new ClickCubeEvent()) /// </summary> public override void ClickCubeEventHandler(ClickCubeEvent data) { base.ClickCubeEventHandler(data); // Process the commands information. Also, you can publish new events by using the line below. // this.Publish(new AnotherEvent()) _cubeClicker.ClickCube(data.Target.Id); CubeSpawn.Cubes.Remove(data.Target); UpdateHUD(); }
/// <summary> // This method is executed when using this.Publish(new ClickCubeEvent()) /// </summary> public virtual void ClickCubeEventHandler(ClickCubeEvent data) { // Process the commands information. Also, you can publish new events by using the line below. // this.Publish(new AnotherEvent()) }