private void Awake() { if (_instance == null) { _instance = this; } }
void Awake() { instantiate = GetComponent <InstantiatePrefabs>(); rig = GetComponent <Rigidbody2D>(); Destroy(this.gameObject, 3f); }