zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Model/Game/Entity/User/UnitSceneFactory.cs

19 lines
461 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
namespace ET
{
public class UnitSceneFactory
{
public static UnitScene Create(Entity scene,long id,Vector2 pos,int Yangle,int mapId)
{
var unitscene = EntityFactory.CreateWithId<UnitScene,int>(scene,id,mapId);
unitscene.Position = pos;
unitscene.YAngle = Yangle;
return unitscene;
}
}
}