Example #1
0
    // Use this for initialization
    protected virtual void Start()
    {
        //gets the rigidbody2d of the character
        rb2D = GetComponent<Rigidbody2D>();
        //gets the animation control of the character
        animator = GetComponent<Animator>();

        //store current player gravity for when player leaves the ladder (to reset)
        gravityStore = rb2D.gravityScale;

        levelManager = FindObjectOfType<LevelManeger>();
    }
Example #2
0
 void Start()
 {
     levelManager = FindObjectOfType<LevelManeger>();
 }