/// <summary>The process.</summary> /// <param name="entity">The entity.</param> public override void Process(DummyPlaceHolder entity) { TestHealthComponent testHealthComponent = entity.Component as TestHealthComponent; if (testHealthComponent != null) { testHealthComponent.AddDamage(this.damage); } }
/// <summary>The process.</summary> /// <param name="entity">The entity.</param> public override void Process(Entity entity) { TestHealthComponent testHealth = entity.GetComponent <TestHealthComponent>(); if (testHealth != null) { testHealth.AddDamage(10); } TestPowerComponent testPower = entity.GetComponent <TestPowerComponent>(); if (testPower != null) { testPower.Power -= 10; } }