Esempio n. 1
0
        public static ActionBarController CreateComponent(GameObject parent, ActionBar actionBar)
        {
            ActionBarController controller = parent.AddComponent <ActionBarController>();

            controller.actionBar = actionBar;
            return(controller);
        }
Esempio n. 2
0
        public void Start()
        {
            items = new ActionItem[maxItems];

            actionBarGUIContainer = GameObjectFactory.NewGameObject("Action Bar GUI Container", gameObject.transform);
            ActionBarGUI.CreateComponent(actionBarGUIContainer, this, items, offset, tilesize);

            ActionBarController.CreateComponent(gameObject, this);
        }