Esempio n. 1
0
    public void setLevSetting(LevControllerSO setting)
    {
        levSetting = setting.clone();
        levGauntletController.setHasGauntlet(levSetting.hasGauntlet);
        levAnimator.runtimeAnimatorController = levSetting.animatorController;
        foreach (Material m in bodyMaterials)
        {
            m.SetFloat("_UnlitValue", levSetting.unlitValue);
        }

        modifiedOnAirSpeed = levSetting.onAirSpeed;
    }
Esempio n. 2
0
    public LevControllerSO clone()
    {
        LevControllerSO newObj = ScriptableObject.CreateInstance <LevControllerSO> ();

        newObj.animatorController = animatorController;
        newObj.hasGauntlet        = hasGauntlet;
        newObj.runSpeed           = runSpeed;
        newObj.runAcceleration    = runAcceleration;
        newObj.onAirSpeed         = onAirSpeed;
        newObj.onAirAcceleration  = onAirAcceleration;
        newObj.turnDuration       = turnDuration;
        newObj.maxJumpHeight      = maxJumpHeight;
        newObj.landingTime        = landingTime;
        newObj.maxSlopeAngle      = maxSlopeAngle;

        newObj.unlitValue = unlitValue;

        return(newObj);
    }