Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     sman     = FindObjectOfType <SceneMan>();
     linkctrl = sman.linkcloudman;
     gm       = sman.gaman;
     bm       = sman.bdman;
     pm       = sman.psman;
     zm       = sman.znman;
 }
Ejemplo n.º 2
0
        public void AddSlots(ZoneMan zm)
        {
            this.zm = zm;
            string gname = this.name;

            switch (gname)
            {
            case "Ms-Redw-B-evac-1":
            {
                var v1 = new Vector3(-2064.2f, 0, -1136.3f);
                var v2 = new Vector3(-2070.1f, 0, -1117.9f);
                GenSlots("z_" + gname, 30, 10, v1, v2);
                zm.CreateZoneLinks(gname, "bRWB-os1-o00");
                bld = zm.sman.bdman.GetBuilding("BldRWB");
                break;
            }

            case "Ms-Redw-B-evac-2":
            {
                var v1 = new Vector3(-2064.2f, 0, -1166.3f);
                var v2 = new Vector3(-2070.1f, 0, -1147.9f);
                GenSlots("z_" + gname, 30, 10, v1, v2);
                zm.CreateZoneLinks(gname, "bRWB-os1-o02");
                bld = zm.sman.bdman.GetBuilding("BldRWB");
                break;
            }

            case "Ms-Redw-B-evac-3":
            {
                var v1 = new Vector3(-1939.5f, 0, -1119.2f);
                var v2 = new Vector3(-1963.5f, 0, -1126.6f);
                GenSlots("z_" + gname, 30, 10, v1, v2);
                zm.CreateZoneLinks(gname, "bRWB-os2-o01");
                bld = zm.sman.bdman.GetBuilding("BldRWB");
                break;
            }

            case "Ms-Redw-B-evac-4":
            {
                var v1 = new Vector3(-1984.0f, 0, -1057.7f);
                var v2 = new Vector3(-1978.7f, 0, -1076.5f);
                GenSlots("z_" + gname, 24, 8, v1, v2);
                zm.CreateZoneLinks(gname, "bRWB-os2-o04");
                bld = zm.sman.bdman.GetBuilding("BldRWB");
                break;
            }

            case "Ms-Redw-B-evac-5":
            {
                var v1 = new Vector3(-2085.0f, 0, -1100.3f);
                var v2 = new Vector3(-2086.6f, 0, -1086.0f);
                GenSlots("z_" + gname, 24, 8, v1, v2);
                zm.CreateZoneLinks(gname, "bRWB-os3-o02");
                bld = zm.sman.bdman.GetBuilding("BldRWB");
                break;
            }

            case "Ms-B19-evac-1":
            {
                //var v1 = new Vector3(-450.0f, 0, 106.6f);
                //var v2 = new Vector3(-443.0f, 0,  95.0f);
                var v1 = new Vector3(-447.6f, 0, 102.4f);
                var v2 = new Vector3(-441.4f, 0, 87.7f);
                GenSlots("z_" + gname, 16, 8, v1, v2);
                zm.CreateZoneLinks(gname, "b19-os2-o01");
                bld = zm.sman.bdman.GetBuilding("Bld19");
                break;
            }

            case "Eb12-evac-1":
            {
                var v1 = new Vector3(36.0f, 0, 17.0f);
                var v2 = new Vector3(48.0f, 0, 17.0f);
                GenSlots("z_" + gname, 14, 8, v1, v2);
                zm.CreateZoneLinks(gname, "eb12-oso01");
                bld = zm.sman.bdman.GetBuilding("Eb12-22");
                break;
            }
            }
        }