sequence

Btn needs to know which one to put in the class. Put it in the name. Put it in the for loop.


In addition to using gameobject to judge, you can also use this to judge







. Generally, intstance is used to judge whether it exists.
Generally , getinstance.init is used to initialize ui
. Generally, getinstance.setdata and set data are used.
Generally , getinstance.move is used to move

if(x.instance!=null)
getinstance.move

if(x.instance!=null)
getinstance.destroy

getinstance.init and getinstnace.setdata have a random relationship//if(lbl==null)return
//init can only be run once. setdata can be run n times,
but each person must run at least once
data is a local variable, always the last time, always the latest

setdata
{
    data=data
    if(lbl==null)
       init reutrn;

    lbl.text=x;
}
init
{
        if(lbl!=null)
            return;
        setdata
}

There is no intit and data at the same time, there is always a sequence, even if the callback
usdata of the loadmanager exists first, the userplayer




active and passive skill windows share a proxy, but the mediator needs 2 corresponding active and passive windows (now think about using a mediator, Because two windows will not exist at the same time)
the parent class writes common things. SetActive false is generally not used in subclasses, but directly extracted and
placed different lengths, the parent class writes 40, the other subclass does not write, the other subclass writes 60, save a subclass
or the parent class does not Write, write 40 for one subclass, 60 for one subclass, 2 subclasses
or 0 for the parent class, provide a setvalue method, the subclass calls 40, the subclass calls 60, similar to the window class


Unlock the previous class, unlock the next class , division
A button corresponds to a class, division
==
according to the division before and after unlocking. Before and after the unlock is created during initialization. And hide one, show and refresh data based on button clicks
Button geometric growth is not cost-effective. The interface difference is 0, only the data is different
==
end-" to split according to all the differences, split a class for skills, split a class before and after the left split, split a class before and after the right split, and finally display the refresh according to the select
==
later It will be beneficial to have a lot of reuse or change of requirements
==



button click sends information to window, window sets each sub-interface, and setsclick(true) and sorts the for loop of the clicked button
==
The default value of index is 0. Open the interface and send a message to request the server. The
service sends data - "first brush the underlying data-" and then brush the interface - do not affect the index at this time, use the index in the window to
upgrade. Similarly,
click -" to enter each sub-interface first. Modify index. Then brush the interface





to create a script that is not displayed because the next frame when the dll set is true will add the script to get the script. So the same piece of code where set is true cannot be obtained
and the code has a judgment. Determine whether it can be obtained. It is for the purpose of classifying and discussing a section of operation that has been created. Perform a period of operation on the uncreated ones
in order to make up for the onstart code that does not run and





 send messages - "Accept - "Data Sorting - "Judging the first time - "It is setid refresh not refresh
 to receive update information - "Data sorting - "Judging the first time - "It's setid refresh, not refresh
  , save selectvo, don't save index,
pay too much attention to refresh and need to refresh all. Therefore, it will be emphasized that all data is placed in one dic
 data and cannot be obtained all at once.
 In the refresh, delete the namespace and increase the number of frames on the add-request server.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325634751&siteId=291194637