save position and cam rotation
This commit is contained in:
@@ -21,7 +21,7 @@ private void Start()
|
||||
|
||||
IEnumerator GoToTarget(Vector3 target)
|
||||
{
|
||||
GameManager.Instance.GetPlayerController().SetCharacterControl(false);
|
||||
GameManager.Instance.PlayerController.SetCharacterControl(false);
|
||||
isMoving = true;
|
||||
Vector3 startPosition = hook.transform.position;
|
||||
float elapsedTime = 0f;
|
||||
@@ -45,7 +45,7 @@ IEnumerator GoToTarget(Vector3 target)
|
||||
|
||||
IEnumerator MovePlayerToTarget(Vector3 target)
|
||||
{
|
||||
Transform player = GameManager.Instance.GetPlayerController().transform;
|
||||
Transform player = GameManager.Instance.PlayerController.transform;
|
||||
Vector3 startPosition = player.position;
|
||||
float elapsedTime = 0f;
|
||||
|
||||
@@ -66,12 +66,12 @@ IEnumerator MovePlayerToTarget(Vector3 target)
|
||||
isMoving = false;
|
||||
stuckInTarget = false;
|
||||
|
||||
GameManager.Instance.GetPlayerController().SetCharacterControl(true);
|
||||
GameManager.Instance.PlayerController.SetCharacterControl(true);
|
||||
}
|
||||
|
||||
IEnumerator ShootAndMiss()
|
||||
{
|
||||
GameManager.Instance.GetPlayerController().SetCharacterControl(false);
|
||||
GameManager.Instance.PlayerController.SetCharacterControl(false);
|
||||
|
||||
isMoving = true;
|
||||
|
||||
@@ -92,7 +92,7 @@ IEnumerator ShootAndMiss()
|
||||
isMoving = false;
|
||||
stuckInTarget = false;
|
||||
|
||||
GameManager.Instance.GetPlayerController().SetCharacterControl(true);
|
||||
GameManager.Instance.PlayerController.SetCharacterControl(true);
|
||||
}
|
||||
|
||||
public override void Use()
|
||||
@@ -105,7 +105,7 @@ public override void Use()
|
||||
isMoving = false;
|
||||
stuckInTarget = false;
|
||||
|
||||
GameManager.Instance.GetPlayerController().SetCharacterControl(true);
|
||||
GameManager.Instance.PlayerController.SetCharacterControl(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user