void Release() { Destroy(markerInstance); Debug.Log("DESTROY MARKER"); debounce = false; stashed.Release(transform); stashed = null; StartCoroutine("StashDebounce"); }
public void StashInside(IStashable go) { if (stashed == null) { stashed = go; debounce = false; markerInstance = Instantiate(go.marker, new Vector3(transform.position.x, transform.position.y + 2.7f, transform.position.z), Quaternion.identity); go.Stash(); StartCoroutine("StashDebounce"); } }