コード例 #1
0
ファイル: Alcove.cs プロジェクト: PWAckerman/Praxis
 void Release()
 {
     Destroy(markerInstance);
     Debug.Log("DESTROY MARKER");
     debounce = false;
     stashed.Release(transform);
     stashed = null;
     StartCoroutine("StashDebounce");
 }
コード例 #2
0
ファイル: Alcove.cs プロジェクト: PWAckerman/Praxis
 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");
     }
 }