示例#1
0
        void SetGame(Transform parent, string name, string value, bool up)
        {
            EquipemtAttributeGame game = GetAttributeGame(parent);

            game.OnUpdate(name, value, up);
            BriskGame.Enqueue(game);
        }
示例#2
0
        protected void SetGame(Transform parent, string data)
        {
            EquipemtAttributeGame game = GetAttributeGame(parent);

            game.OnUpdate(data);
            BriskGame.Enqueue(game);
        }
示例#3
0
 public override void OnUpdate()
 {
     while (BriskGame.Count > 0)
     {
         EquipemtAttributeGame game = BriskGame.Dequeue();
         game.Close();
         IdelGame.Enqueue(game);
     }
     AttributeParent.gameObject.SetActive(false);
     APParent.gameObject.SetActive(false);
     NeedAttributeParent.gameObject.SetActive(false);
 }
示例#4
0
        EquipemtAttributeGame GetAttributeGame(Transform parent)
        {
            EquipemtAttributeGame con = null;

            if (IdelGame.Count > 0)
            {
                con = IdelGame.Dequeue();
            }
            else
            {
                GameObject game = Instantiate <GameObject>(AttributeGamePrefab);
                game.transform.localScale = Vector3.one;
                con = game.AddComponent <EquipemtAttributeGame>();
                con.mAwake();
            }
            if (parent.gameObject.activeSelf == false)
            {
                parent.gameObject.SetActive(true);
            }
            con.transform.SetParent(parent, false);
            return(con);
        }