static public void PlayAni(uint objId, string aniName) { BaseScene scn = SceneManager.Instance.GetCurScene(); if (scn == null) { return; } ObjectBase obj = scn.FindObject(objId); if (obj == null) { return; } VisualObject vObj = obj as VisualObject; if (vObj == null) { return; } AnimActionPlayAnim action = AnimActionFactory.Create(AnimActionFactory.E_Type.PlayAnim) as AnimActionPlayAnim; action.AnimName = aniName; vObj.GetStateController().DoAction(action); return; }