示例#1
0
 public Unit(UnitId unitId, IUnitData unitData, IUnit[] petUnits, Transform transform)
 {
     UnitId    = unitId;
     UnitData  = unitData;
     Transform = transform;
     _petUnits.AddRange(petUnits);
 }
示例#2
0
        public override bool Equals(Object obj)
        {
            if (!(obj is UnitId))
            {
                return(false);
            }

            UnitId otherUnitId = (UnitId)obj;

            return(_guid.Equals(otherUnitId._guid));
        }