public IEnumerator ReleaseDelay() { yield return(null); if (Anchorable.anchor == Manager.Instance.inspeccionarVariable) { if (objetoReferenciado != null) { selected = false; eo.Open(this); mg.Close(); } else { selected = false; Anchorable.anchor = MainAnchor as Anchor; Anchorable.anchorLerpCoeffPerSec = MainAnchor.LerpCoeficient; Anchorable.isAttached = true; Anchorable.anchor.NotifyAttached(Anchorable); transform.position = Anchorable.anchor.transform.position; if (Manager.Instance.english) { mg.ShowText("Please asign an object to the variable"); } else { mg.ShowText("Por favor asigna un objeto a la variable"); } } } else if (Anchorable.anchor == Manager.Instance.papeleraExploradorObjetos) { mg.RemoveOneVariable(this); } else { selected = false; Anchorable.anchor = MainAnchor as Anchor; Anchorable.anchorLerpCoeffPerSec = MainAnchor.LerpCoeficient; Anchorable.isAttached = true; Anchorable.anchor.NotifyAttached(Anchorable); } }
public IEnumerator ReleaseDelay() { yield return(null); if (Anchorable.anchor == Manager.Instance.inspeccionarVariable) { selected = false; eo.Open(this); mg.Close(); } else if (Anchorable.anchor == Manager.Instance.papeleraExploradorObjetos) { mg.RemoveOneObject(this); } else { selected = false; Anchorable.anchor = MainAnchor as Anchor; Anchorable.anchorLerpCoeffPerSec = MainAnchor.LerpCoeficient; Anchorable.isAttached = true; Anchorable.anchor.NotifyAttached(Anchorable); } }