public Crate(ActorInitializer init, CrateInfo info) { this.self = init.self; if (init.Contains <LocationInit>()) { this.Location = init.Get <LocationInit, CPos>(); PxPosition = Util.CenterOfCell(Location); } this.Info = info; }
public Crate(ActorInitializer init, CrateInfo info) { this.self = init.self; this.info = info; if (init.Contains <LocationInit>()) { SetPosition(self, init.Get <LocationInit, CPos>()); } }