Esempio n. 1
0
    private void FixedUpdate()
    {
        RaycastHit2D playerCheck = Physics2D.BoxCast(transform.position, new Vector2(3f, 4f), 0f, Vector2.zero, 0f, whatIsPlayer);

        if (playerCheck && checkForPlayer)
        {
            checkForPlayer = false;

            levelSelectParent.LevelTransition(selectNum, isSceneSelect, left, right, up, down);
        }
    }