Esempio n. 1
0
    public void SendToStart()
    {
        cameraObject.GetComponent <RectTransform>().position = cameraStartPosition;
        TransitionController tc = cameraObject.GetComponent <TransitionController>();

        tc.changeRoom(Vector2.zero);
        player.transform.position = playerStartPosition;
        PlayerController pc = player.GetComponent <PlayerController>();

        pc.state = PlayerController.PlayerStates.Idle;
    }