/// <summary> ///RemoveCreature 的测试 ///</summary> public void RemoveCreatureTestHelper <T>() where T : BaseCreature { CreatureManager <T> target = new CreatureManager <T>(); // TODO: 初始化为适当的值 long iCreatureId = 0; // TODO: 初始化为适当的值 target.RemoveCreature(iCreatureId); Assert.Inconclusive("无法验证不返回值的方法。"); }
// when button is pressed public void OnButtonPressed(VirtualButtonBehaviour vButt2) { //Debug.Log("````````````````````````````````button pressed " ); Creature particle = new Particle(); if (!particleOn) { particle = new Particle(); particle.SpawnSelf(prefabParticle, theTrackable); CreatureManager.AddCreature(particle); } else { CreatureManager.RemoveCreature(particle); } CreatureManager.ChangeParticleState(particleOn); }