private void OnClickSelect(VoicePlayNode _vpn) { if (MathfEx.RangeEqualOn <int>(0, this.select, this.listNode.Count)) { this.listNode[this.select].select = false; } this.select = this.listNode.FindIndex((Predicate <VoicePlayNode>)(v => Object.op_Equality((Object)v, (Object)_vpn))); this.listNode[this.select].select = true; }
private void OnClickDelete(VoicePlayNode _vpn) { int index = this.listNode.FindIndex((Predicate <VoicePlayNode>)(v => Object.op_Equality((Object)v, (Object)_vpn))); this.listNode.RemoveAt(index); _vpn.Destroy(); this.scrollRect.set_verticalNormalizedPosition(1f); this.m_OCIChar.DeleteVoice(index); if (this.select != index) { return; } this.select = -1; }