Beispiel #1
0
 public void DeActivateOther(AmSceneBase pNewObj)
 {
     foreach (KeyValuePair <string, AmSceneBase> curObj in dicScene)
     {
         if (curObj.Value != pNewObj)
         {
             curObj.Value.muiActive = false;
         }
     }
 }
Beispiel #2
0
    //  ////////////////////////////////////////////////     Add Scene ..
    public void AddScene(AmSceneBase pSceneObj)
    {
        string scnName = pSceneObj.GetType().ToString();

        Ag.LogIntense(3, true);
        Ag.LogString("________________________________________________________________________________ UI HQ _____");
        Ag.LogString("/HQ//HQ//HQ//HQ/  HtUiHeadquater  :: ]]] Add Scene [[[  >>>>> " + scnName + " <<<<<");
        Ag.LogString("________________________________________________________________________________ UI HQ _____");
        Ag.LogIntense(3, false);
        if (!dicScene.ContainsKey(scnName))
        {
            dicScene.Add(scnName, pSceneObj);
        }
        pSceneObj.muiActive = true;
        //DeActivateOther(pSceneObj);  # Active Scene can be MULTILPLE !!! ...
    }
Beispiel #3
0
 public void DetachScene(AmSceneBase pSceneObj) // Called from AmSceneBase.OnDisable ..
 {
     dicScene.Remove(pSceneObj.GetType().ToString());
 }