Example #1
0
    // Use this for initialization
    void Start()
    {
        startPosition = transform.position;

        TouchInput.onTapRelease += JumpTap;

        GameObject startFloe = GameObject.FindGameObjectWithTag("StartFloe");

        GetComponent <PlayerMovementController>().currentFloe = startFloe.GetComponent <IceFloe>();

        gameController = GameObject.FindObjectOfType <PP_GameController>();
        if (gameController == null)
        {
            Debug.LogError("Please add a game controller to the scene!");
        }
    }
Example #2
0
    public void retryLevel()
    {
        PP_GameController gameCtrl = Camera.main.GetComponent <PP_GameController>();

        gameCtrl.resetTheGameState();
    }