12345678910111213141516171819202122232425 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class SetObjectToDelete : MonoBehaviour
- {
- private DeleteManager dltMng;
- // Start is called before the first frame update
- void Start()
- {
- dltMng = GameObject.Find("DeletionManager").GetComponent<DeleteManager>();
- }
- // Update is called once per frame
- void Update()
- {
-
- }
- public void SetObjToDelete()
- {
- dltMng.SetObjectToDelete(this.gameObject);
- }
- }
|