Example #1
0
    public void Embark()
    {
        Suri.SetActive(false);

        Chapu chapu = _gameController.GetComponent <GameController>().Chapu.GetComponent <Chapu>();

        chapu.Embark();

        DockedShip.GetComponent <CharacterMovement>().IsControlledByPlayer = true;
        DockedShip.GetComponent <Ship>().ShrinkCollider();
        Cam.Target = DockedShip;
        _gameController.SetDrivingBoat(true);

        _gameController.GetComponent <SFXController>().PlayEmbark();
    }
Example #2
0
    public void Disembark()
    {
        Suri.transform.position = DisembarkPlace.transform.position;
        Suri.SetActive(true);
        DockedShip.GetComponent <CharacterMovement>().IsControlledByPlayer = false;
        DockedShip.GetComponent <Ship>().EnlargeCollider();
        DockedShip.transform.position = transform.position + 11.2f * transform.right;
        Cam.Target = Suri;
        _gameController.SetDrivingBoat(false);

        Chapu chapu = _gameController.GetComponent <GameController>().Chapu.GetComponent <Chapu>();

        chapu.gameObject.SetActive(true);
        chapu.Disembark();

        _gameController.GetComponent <SFXController>().PlayDisembark();
    }