Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- public class TriggerShot : MonoBehaviour
- {
- // public MoveStateBehaviour.State stateChange;
- public GameObject toDestroy;
- public static bool isMissed = false;
- void Awake(){
- toDestroy = GetComponent<Sensor>().containTarget;
- }
- void Start(){
- DestroyThis();
- }
- public void DestroyThis(){
- if (toDestroy != null){
- Debug.Log("ToDestroy : is not null");
- Debug.Log(toDestroy);
- }
- else{
- Debug.Log("ToDestroy : is null");
- Debug.Log(toDestroy);
- }
- }
- }
Add Comment
Please, Sign In to add comment