Esempio n. 1
0
 public void Deactivate()
 {
     StopListeners();
     Reset();
     UIManager.UI.destroySHP(gameObject);
     linked_gobject = null;
     assoc_shp      = null;
 }
Esempio n. 2
0
 public void Deactivate()
 {
     StopListeners ();
     Reset ();
     UIManager.UI.destroySHP (gameObject);
     linked_gobject = null;
     assoc_shp = null;
 }
Esempio n. 3
0
 public void destroySHP(GameObject anchor)
 {
     if (anchor.GetComponent <GRObject> ().assoc_shp != null)
     {
         SmallHoveringPanel shp = anchor.GetComponent <GRObject> ().assoc_shp;
         anchor.GetComponent <GRObject> ().assoc_shp = null;
         Destroy(shp.gameObject);
     }
 }
Esempio n. 4
0
    public SmallHoveringPanel createSHP(GameObject anchor)
    {
        GameObject panelObj = Instantiate(SmallHoveringPanel_Prefab) as GameObject;

        panelObj.transform.SetParent(canvas.transform);
        SmallHoveringPanel smh = panelObj.GetComponent <SmallHoveringPanel> ();

        smh.Init(anchor, this);
        anchor.GetComponent <GRObject> ().assoc_shp = smh;
        return(smh);
    }