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