Exemple #1
0
    // Use this for initialization
    void Start()
    {
        ExplosionHelper.Add(this);
        numberOfHumans++;
        humanId = humanInstanceCount++;
        DataCollector.Add("Total # of people", 1f);

        GenericHumanSounds.HumanCountChange();
        initHumanProfile();

        StartCoroutine(reportStats());
    }
Exemple #2
0
    private IEnumerator humanReachedGoal()
    {
        HumanCollider[] humanColliders = GetComponentsInChildren <HumanCollider> ();
        foreach (HumanCollider collider in humanColliders)
        {
            collider.GetComponent <BoxCollider> ().center = new Vector3(0f, 0f, 1000f);
        }

        yield return(null);

        Destroy(this.gameObject);
//		if (health > 0f) {
        PubSub.publish("points:inc", PointCalculator.humanDestinationPoints);
        DataCollector.Add("Humans reached goal", 1f);
//		}
        numberOfHumans--;
        GenericHumanSounds.HumanCountChange();
    }