private void shape() { if (toggleEdge.isOn) { particleSystemMidController.shapeEdge(); } else { particleSystemMidController.shapeCone(); } }
public IEnumerator particleSystemEdgeTest() { GameObject newGameObject = InstantiateGameObjectParticleSystemMidController(); yield return(null); particleSystemMidController = newGameObject.GetComponent <ParticleSystemMidController>(); particleSystemMidController.shapeEdge(); var shape = particleSystemMidController.particleSystem.shape; Assert.AreEqual(ParticleSystemShapeType.SingleSidedEdge, shape.shapeType); Assert.AreEqual(ParticleSystemMidController.ANGLE, shape.angle); Assert.AreEqual(ParticleSystemMidController.EDGE_RADIUS, shape.radius); }