Exemplo n.º 1
0
    public virtual void SyncEngineValue(EngineValue _engineValue, UILayoutMaster _master, int _ind)
    {
        var val = GetEngineValueUI(_master, _ind);

        if (val)
        {
            val.SyncEngineValue(_engineValue);
        }
    }
Exemplo n.º 2
0
 public UIEngineValue GetEngineValueUI(UILayoutMaster _master, int _ind)
 {
     for (int i = 0; i < UILayouts.Length; i++)
     {
         if (UILayouts[i].layoutMaster == _master)
         {
             if (UILayouts[i].engineValues[_ind])
             {
                 return(UILayouts[i].engineValues[_ind]);
             }
         }
     }
     Debug.LogError(this + " could not find ui with " + _master + " at index: " + _ind);
     return(null);
 }