Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Enemy vision while moving buggy #3

Closed
PedroNCordeiro opened this issue Mar 17, 2017 · 2 comments
Closed

Enemy vision while moving buggy #3

PedroNCordeiro opened this issue Mar 17, 2017 · 2 comments
Labels

Comments

@PedroNCordeiro
Copy link
Owner

Floor tile behind enemy not updating

screen shot 2017-03-17 at 19 08 20

@PedroNCordeiro
Copy link
Owner Author

Current status: Coroutines not syncronized.
The two coroutines (Movement and Vision) should communicate. This means that Vision should be calculated when Movement is finished, and Movement should start when Vision is finished.

@PedroNCordeiro
Copy link
Owner Author

Solved.

On Enemy script:

	protected override IEnumerator SmoothMovement(Vector3 end)
	{
		yield return StartCoroutine (base.SmoothMovement (end));
		yield return StartCoroutine (VisionWhileMoving (horizontal, vertical));
	}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant