public void MoveSpriteNode(int nSrcIndex, int nTarIndex) { NcSpriteNode item = this.m_SpriteList[nSrcIndex]; this.m_SpriteList.Remove(item); this.m_SpriteList.Insert(nTarIndex, item); }
public void MoveSpriteNode(int nSrcIndex, int nTarIndex) { NcSpriteNode node = m_SpriteList[nSrcIndex]; m_SpriteList.Remove(node); m_SpriteList.Insert(nTarIndex, node); }
public int AddSpriteNode(NcSpriteNode addSpriteNode) { if (m_SpriteList == null) m_SpriteList = new List<NcSpriteNode>(); m_SpriteList.Add(addSpriteNode.GetClone()); return m_SpriteList.Count-1; }
public int AddSpriteNode(NcSpriteNode addSpriteNode) { if (m_SpriteList == null) { m_SpriteList = new List <NcSpriteNode>(); } m_SpriteList.Add(addSpriteNode.GetClone()); return(m_SpriteList.Count - 1); }
public int AddSpriteNode() { NcSpriteNode SpriteNode = new NcSpriteNode(); if (m_SpriteList == null) m_SpriteList = new List<NcSpriteNode>(); m_SpriteList.Add(SpriteNode); return m_SpriteList.Count-1; }
public int AddSpriteNode(NcSpriteNode addSpriteNode) { if (this.m_SpriteList == null) { this.m_SpriteList = new List <NcSpriteNode>(); } this.m_SpriteList.Add(addSpriteNode.GetClone()); this.m_bNeedRebuild = true; return(this.m_SpriteList.Count - 1); }
public NcSpriteNode SetSpriteNode(int nIndex, NcSpriteNode newInfo) { if (m_SpriteList == null || nIndex < 0 || m_SpriteList.Count <= nIndex) { return(null); } NcSpriteNode oldSpriteNode = m_SpriteList[nIndex] as NcSpriteNode; m_SpriteList[nIndex] = newInfo; return(oldSpriteNode); }
public NcSpriteNode SetSpriteNode(int nIndex, NcSpriteNode newInfo) { if (((this.m_SpriteList == null) || (nIndex < 0)) || (this.m_SpriteList.Count <= nIndex)) { return(null); } NcSpriteNode node = this.m_SpriteList[nIndex]; this.m_SpriteList[nIndex] = newInfo; return(node); }
public int AddSpriteNode() { NcSpriteNode item = new NcSpriteNode(); if (this.m_SpriteList == null) { this.m_SpriteList = new List <NcSpriteNode>(); } this.m_SpriteList.Add(item); return(this.m_SpriteList.Count - 1); }
public int AddSpriteNode() { NcSpriteNode SpriteNode = new NcSpriteNode(); if (m_SpriteList == null) { m_SpriteList = new List <NcSpriteNode>(); } m_SpriteList.Add(SpriteNode); return(m_SpriteList.Count - 1); }
public int AddSpriteNode() { NcSpriteNode SpriteNode = new NcSpriteNode(); if (m_SpriteList == null) { m_SpriteList = new List <NcSpriteNode>(); } m_SpriteList.Add(SpriteNode); // m_bNeedRebuild = true; return(m_SpriteList.Count - 1); }
void CreateSoundObject(NcSpriteNode ncSpriteNode) { // Debug.Log("CreateSoundObject"); if (m_bShowEffect == false) { return; } if (ncSpriteNode.m_AudioClip != null) { if (m_CurrentSound == null) { m_CurrentSound = gameObject.AddComponent <NcAttachSound>(); } m_CurrentSound.m_AudioClip = ncSpriteNode.m_AudioClip; m_CurrentSound.m_bLoop = ncSpriteNode.m_bSoundLoop; m_CurrentSound.m_fVolume = ncSpriteNode.m_fSoundVolume; m_CurrentSound.m_fPitch = ncSpriteNode.m_fSoundPitch; m_CurrentSound.Replay(); } }
void CreateSoundObject(NcSpriteNode ncSpriteNode) { // Debug.Log("CreateSoundObject"); if (m_bShowEffect == false) return; if (ncSpriteNode.m_AudioClip != null) { if (m_CurrentSound == null) m_CurrentSound = gameObject.AddComponent<NcAttachSound>(); m_CurrentSound.m_AudioClip = ncSpriteNode.m_AudioClip; m_CurrentSound.m_bLoop = ncSpriteNode.m_bSoundLoop; m_CurrentSound.m_fVolume = ncSpriteNode.m_fSoundVolume; m_CurrentSound.m_fPitch = ncSpriteNode.m_fSoundPitch; m_CurrentSound.enabled = true; m_CurrentSound.Replay(); } }
public NcSpriteNode SetSpriteNode(int nIndex, NcSpriteNode newInfo) { if (m_SpriteList == null || nIndex < 0 || m_SpriteList.Count <= nIndex) return null; NcSpriteNode oldSpriteNode = m_SpriteList[nIndex] as NcSpriteNode; m_SpriteList[nIndex] = newInfo; return oldSpriteNode; }
public int AddSpriteNode() { NcSpriteNode SpriteNode = new NcSpriteNode(); if (m_SpriteList == null) m_SpriteList = new List<NcSpriteNode>(); m_SpriteList.Add(SpriteNode); // m_bNeedRebuild = true; return m_SpriteList.Count-1; }
private void CreateSoundObject(NcSpriteNode ncSpriteNode) { if (this.m_bShowEffect && (ncSpriteNode.m_AudioClip != null)) { } }