Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class TriggerShoot : MonoBehaviour {
- public MoveStateBehaviour.State stateChange;
- public static bool isMissed = false;
- public void DestroyThis(){
- GameObject toDestroy = Sensor.containTarget;
- Debug.Log("ToDestroy : "+toDestroy);
- if(toDestroy != null){
- isMissed = true;
- }
- Destroy(toDestroy);
- isMissed = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement