// Use this for initialization
    void Awake()
    {
        anim       = this.GetComponent <Animator>();
        cam        = Camera.main;
        controller = this.GetComponent <CharacterController>();

        maxStamina = stamina;

        freeClimb       = GetComponent <SA.FreeClimb>();
        slopeController = GetComponent <SlopeController>();
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        openWorldMovement = this.GetComponent <OpenWorldMovement>();

        freeClimb = GetComponent <SA.FreeClimb>();
    }
 public void Init(FreeClimb c, Transform helper)
 {
     anim   = c.anim;
     ikBase = c.baseIKSnapshot;
     h      = helper;
 }