/// <summary> /// Sets the water ninja. /// </summary> void setWaterNinja() { // Set the water ninja type ninjaType = NinjaType.Water; // Set Ninja Settings setNinjaSettings(waterSettings); // Iterate through each of the renderers foreach (Renderer ninjaRenderer in ninjaRenderers) { // Set the texture alpha ninjaRenderer.material.color = new Color(1.0f, 1.0f, 1.0f, 1.0f); ninjaRenderer.material.shader = Shader.Find("Reflective/Bumped Specular"); ninjaRenderer.material.SetColor("_ReflectColor", new Color(0.0f, 0.0f, 1.0f, 0.5f)); } }
public InteractiveCollision(Collider col, NinjaType ninjaType) { collider = col; type = ninjaType; }
public InteractiveCollision(ControllerColliderHit colHit, NinjaType ninjaType) { hit = colHit; type = ninjaType; }