public virtual void Die() { dead = true; if (OnDeath != null) { OnDeath(); } GameCamera.Destroy(gameObject); }
public void OnClickDelNode() { var child = m_Root.GetSelectedNode(); if (null != child) { var tmpRoot = m_Root.GetNodeRoot(child); if (null != tmpRoot) { tmpRoot.RemoveChild(child); GameCamera.Destroy(child.m_ObjRoot); } } m_Root.Render(0); }