Exemple #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;
 }
Exemple #2
0
 public void AddRoomsToBuilding()
 {
     roomdict   = new Dictionary <string, BldRoom>();
     roomlistgo = new GameObject("Rooms");
     roomlistgo.transform.parent = this.transform;
     this.lc = bm.sman.linkcloudman;
     if (roomspecs.Count == 0)
     {
         var rooms = GetRoomListFromNodes();
         rooms.ForEach(room => AddOneRoom(room));
     }
     else
     {
         roomspecs.ForEach(roomspec => AddOneRoomSpec(roomspec));
     }
 }
Exemple #3
0
 public void Init(LinkCloudMan lcman, GraphAlgos.GraphCtrl grc)
 {
     this.grc   = grc;
     this.lcman = lcman;
 }
Exemple #4
0
 public void Init(LinkCloudMan lm, SceneMan sm)
 {
     this.lm      = lm;
     this.sm      = sm;
     nodeMoveMode = nodeMoveModeE.move;
 }