//**関数*************************************************************************** // 概要 : 変数初期化 //********************************************************************************* void Awake() { m_fAnimTime = 0.0f; m_nAnimState = 0; m_nAnimNum = 0; m_eAnimType = e2DAnimType.NONE; m_bAnimEnd = false; m_szTexName = null; }
//**関数*************************************************************************** // 概要 : アニメーション情報セット //********************************************************************************* public void SetAnimInfo(string texName , e2DAnimType eType , List<float> fWaitList) { if (e2DAnimType.NONE == eType) return; m_nAnimNum = fWaitList.Count; m_fAnimWait.Clear (); m_fAnimWait = fWaitList; m_nAnimState = 0; m_fAnimTime = 0.0f; m_eAnimType = eType; // テクスチャ変更 m_szTexName = texName; TexNameSet(); if (eType != e2DAnimType.NONE || eType != e2DAnimType.STOP) m_bAnimEnd = false; }
//**関数*************************************************************************** // 概要 : テクスチャ1箇所を指定し、そこで停止させる //********************************************************************************* public void SetAnimOneScene(string texName, int nPoint) { m_nAnimNum = 0; m_fAnimWait.Clear (); m_nAnimState = nPoint; m_fAnimTime = 0.0f; m_eAnimType = e2DAnimType.STOP; m_bAnimEnd = true; // テクスチャ変更 m_szTexName = texName; TexNameSet(); }