public LogicEntity CreateBullet(LogicEntity releaserEntity) { AttrComponent attr = releaserEntity.GetComponent <AttrComponent>(); LogicEntity result = CreateEntityByResPath(""); result.SetLifeTime(attr.GetAttr(Attr.BulletLife)); result.AddComponent <BulletComponent>(releaserEntity); LogicMove moveComp = result.AddComponent <LogicMove>(); moveComp.AddMove(releaserEntity.LogicTran.forward, attr.GetAttr(Attr.BulletSpeed), attr.GetAttr(Attr.BulletLife), null); return(result); }