Ejemplo n.º 1
0
 public void SetUnit(UnitMng unitMng, eUnitType unitType, PlayerCtrl owner, Vector3 unitPos)
 {
     this.unitMng  = unitMng;
     this.unitType = unitType;
     this.owner    = owner;
     SetJob(eUnitJob.Worker);
     transform.localPosition = unitPos;
     transform.name          = (nUintCnt++) + "-" + Owner.name + "-Unit";
     OnGround();
     Owner.RegisterPlayerUnit(this);
 }