Last active
September 4, 2020 12:58
-
-
Save Hsgngr/2a9f0d832b1573825ad315c7c067dfec to your computer and use it in GitHub Desktop.
Reward script for PandemicSimulation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class reward : MonoBehaviour | |
{ | |
private GameObject pandemicAreaObj; | |
//private bool isTaken = false; | |
private void Awake() | |
{ | |
pandemicAreaObj = GetComponentInParent<PandemicArea>().gameObject; | |
} | |
private void OnCollisionEnter(Collision collision) | |
{ | |
if (collision.gameObject.CompareTag("agent")) | |
{ | |
} | |
} | |
private IEnumerator WaitAndDeploy(float waitTime) | |
{ | |
gameObject.SetActive(false); | |
yield return new WaitForSeconds(waitTime); | |
print("WaitAndPrint " + Time.time); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment