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