my class relation is:
when i coding Gamelogic & UIControler ,i found that ,On UILayer if a monster ui should do some action, this ui should be bind its database. if this UI don’t care the database,
so on GameLogicLayer the database should tell UILayer which UI go to work. Now I give a static Number for database and UI , database and UI have the same Number,but the number never be the same for other UI&database. ok, UI can find his database. I think my design is not good,but i don’t know better than it . I need some help ,tell some better way for it. I don’t like my design very much.please give me some ideas.
thank you gus!
I think about NotificationCeter,it cost too much on messageLoop…
