Exemple #1
0
 void Release()
 {
     Destroy(markerInstance);
     Debug.Log("DESTROY MARKER");
     debounce = false;
     stashed.Release(transform);
     stashed = null;
     StartCoroutine("StashDebounce");
 }
Exemple #2
0
 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");
     }
 }