Exemple #1
0
 public void SetStats(Vector3 pt, int pcap, float alignang, float length, float width, bool enableFrames)
 {
     this.personCap    = pcap;
     this.pos          = pt;
     this.alignang     = alignang;
     this.width        = width;
     this.length       = length;
     this.area         = length * width;
     this.enableFrames = enableFrames;
     occman            = gameObject.AddComponent <BldRoomOccMan>();
     occman.init(this, pcap, this.width, this.length, slotsCanExpand: true);
 }
Exemple #2
0
        public void SetStatsArea(Vector3 pt, int pcap, float alignang, float area, bool enableFrames)
        {
            this.personCap = pcap;
            this.pos       = pt;
            this.alignang  = alignang;
            this.area      = area;
            var sqrtarea = Mathf.Sqrt(area);

            this.width        = sqrtarea;
            this.length       = sqrtarea;
            this.enableFrames = enableFrames;
            occman            = gameObject.AddComponent <BldRoomOccMan>();
            occman.init(this, pcap, this.width, this.length, slotsCanExpand: true);
        }