public override bool Parse() { if (mInfo.Name != "STMT") { Debug.LogError("error node:" + mInfo); return(false); } VarRef npcId = PeType.GetNpcId(mInfo, mTrigger); int id = (int)npcId.Value; Pathea.PeEntity entity = Pathea.EntityMgr.Instance.Get(id); if (null == entity) { Debug.LogError("can't find entity:" + id); return(false); } mMove = entity.GetCmpt <Pathea.Motion_Move>(); if (null == mMove) { Debug.LogError("can't find move cmpt:"); return(false); } return(true); }
public override bool Parse() { if (false == base.Parse()) { return(false); } mNpcId = PeType.GetNpcId(mInfo, mTrigger); return(true); }