Beispiel #1
0
    public override void ObjectSetup()
    {
        base.ObjectSetup();

        playerCollision        = GetComponent <PlayerCollisionManager2D>();
        playerAttackController = GetComponent <PlayerAttackController2D>();
        playerAnimation        = GetComponent <PlayerAnimationController2D>();
        playerAudio            = GetComponent <PlayerAudioController2D>();

        EventSetup();

        CalculateGravity();
    }
    public override void ObjectSetup()
    {
        base.ObjectSetup();

        playerCollision        = GetComponent <PlayerCollisionManager2D>();
        playerAttackController = GetComponent <PlayerAttackController2D>();
        playerAnimation        = GetComponent <PlayerAnimationController2D>();
        playerAudio            = GetComponent <PlayerAudioController2D>();

        checkpointManager = GameObject.FindObjectOfType <CheckpointManager>();

        startingPosition = transform.position;

        EventSetup();

        CalculateGravity();
    }