public void Activate(string element_name, ReadableItem ri) { this.m_Active = true; this.m_ElementName = element_name; HUDManager.Get().PlaySound(this.m_AudioClip); this.m_ActiveItem = ri; }
public bool WasReaded(GameObject item_obj) { if (!item_obj) { return(false); } ReadableItem component = item_obj.GetComponent <ReadableItem>(); if (!component) { DebugUtils.Assert("Object " + item_obj.name + " is not ReadableItem!", true, DebugUtils.AssertType.Info); return(false); } return(component.m_WasReaded); }