Пример #1
0
    public override void Start()
    {
        base.Start();

        //walk and run vars
        WALK_SPEED  = 60.0f;  //used for cutscenes with Val
        SNEAK_SPEED = 120.0f; //PC's default speed
        RUN_SPEED   = 270.0f;
        char_stats.current_move_state = CharEnums.MoveState.IsSneaking;

        mag_grip = GetComponent <MagGripUpgrade>();
    }
 // Use this for early initialization (references)
 private void Awake()
 {
     char_stats = GetComponentInParent <CharacterStats>();
     mag_grip   = GetComponentInParent <MagGripUpgrade>();
 }