public void CommitCrime(Vector3 location, CrimeSceneScript crimeScript) { agent.SetDestination (location); commitingCrime = true; currentCrimeScript = crimeScript; //crimesCommitted.Add (crimeScript.GetCrimeNumber ()); }
public void CommitCrime(Vector3 location, CrimeSceneScript crimeScript) { agent.SetDestination(location); commitingCrime = true; currentCrimeScript = crimeScript; //crimesCommitted.Add (crimeScript.GetCrimeNumber ()); }
void Update() { cooldownRemaining -= Time.deltaTime; if (commitingCrime) { if (agent.remainingDistance <= 1f) { commitingCrime = false; currentCrimeScript = null; } } else { if (agent.hasPath != true) { GlobalDataScript.MoveToWayPoint(gameObject); } } }
void Update() { cooldownRemaining -= Time.deltaTime; if (commitingCrime) { if (agent.remainingDistance <= 1f) { commitingCrime = false; currentCrimeScript = null; } } else { if (agent.hasPath != true) { GlobalDataScript.MoveToWayPoint (gameObject); } } }