Exemplo n.º 1
0
 private void InsInput()
 {
     listTempInput = GetComponentsInChildren <YuanInput>();
     listInput.AddRange(listTempInput);
     if (poolExps == null)
     {
         poolExps = getInput.GetComponent <ObjectGamepool>();
     }
     foreach (YuanInput input in listInput)
     {
         input.multiLine    = true;
         input.maxWidth     = this.maxWidth;
         input.Kerning      = this.Kerning;
         input.size         = this.size;
         input.caratChat    = "";
         input.font         = this.font;
         input.invMaker     = this.invMaker;
         input.itemInfoBar  = getInput.itemInfoBar;
         input.objLableLink = this.objLableLink;
         input.btnSend      = getInput.btnSend;
         input.listDisLink  = this.listDisLink;
         input.GetComponent <ObjectGamepool>().EffectP = poolExps.EffectP;
         input.btnSend     = this.btnSend;
         input.itemInfoBar = this.infoBar;
         nodeInput.InNode(input);
     }
 }
Exemplo n.º 2
0
 void Awake()
 {
     poolExpression = GetComponent <ObjectGamepool>();
     foreach (EffectSP sp in poolExpression.EffectP)
     {
         listExpression.Add(sp.effectprefab.GetComponent <UISprite>());
     }
 }
Exemplo n.º 3
0
 public void GetExpression()
 {
     if (listExpression.Count == 0)
     {
         poolExpression = GetComponent <ObjectGamepool>();
         foreach (EffectSP sp in poolExpression.EffectP)
         {
             listExpression.Add(sp.effectprefab.GetComponent <UISprite>());
         }
     }
 }
Exemplo n.º 4
0
 void FindObj()
 {
     btnPoint = transform.FindChild("Btn");
     if (input)
     {
         pool = input.GetComponent <ObjectGamepool>();
     }
     if (pool && listExpr != null && listExpr.Count == 0)
     {
         foreach (EffectSP sp in pool.EffectP)
         {
             listExpr.Add(sp.effectprefab.GetComponent <UISprite>());
         }
     }
 }
Exemplo n.º 5
0
 private void GetExpression(ObjectGamepool pool)
 {
     pool.EffectP = poolExpression.EffectP;
 }