예제 #1
0
    public void CommitCrime(Vector3 location, CrimeSceneScript crimeScript)
    {
        agent.SetDestination (location);

        commitingCrime = true;
        currentCrimeScript = crimeScript;
        //crimesCommitted.Add (crimeScript.GetCrimeNumber ());
    }
예제 #2
0
    public void CommitCrime(Vector3 location, CrimeSceneScript crimeScript)
    {
        agent.SetDestination(location);

        commitingCrime     = true;
        currentCrimeScript = crimeScript;
        //crimesCommitted.Add (crimeScript.GetCrimeNumber ());
    }
예제 #3
0
    void Update()
    {
        cooldownRemaining -= Time.deltaTime;

        if (commitingCrime)
        {
            if (agent.remainingDistance <= 1f)
            {
                commitingCrime     = false;
                currentCrimeScript = null;
            }
        }
        else
        {
            if (agent.hasPath != true)
            {
                GlobalDataScript.MoveToWayPoint(gameObject);
            }
        }
    }
예제 #4
0
    void Update()
    {
        cooldownRemaining -= Time.deltaTime;

         if (commitingCrime) {
            if (agent.remainingDistance <= 1f) {
                commitingCrime = false;
                currentCrimeScript = null;
            }
        } else {
            if (agent.hasPath != true) {
                GlobalDataScript.MoveToWayPoint (gameObject);
            }
        }
    }