예제 #1
0
    /// <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));
        }
    }
예제 #2
0
 public InteractiveCollision(Collider col, NinjaType ninjaType)
 {
     collider = col;
     type     = ninjaType;
 }
예제 #3
0
 public InteractiveCollision(ControllerColliderHit colHit, NinjaType ninjaType)
 {
     hit  = colHit;
     type = ninjaType;
 }