Exemplo n.º 1
0
        public void SetUp(StorageSystemMenuController menuController)
        {
            this.menuController = menuController;

            for (byte partyIndex = 0; partyIndex < partyPokemonPositions.Length; partyIndex++)
            {
                byte index = partyIndex;

                PartyPokemonPositionController controller = partyPokemonPositions[partyIndex];

                controller.SetPointerGameObject(pointer);

                controller.SetOnSelectAction(() =>
                {
                    PokemonInstance controllerPokemon = controller.GetCurrentPokemon();
                    if (controllerPokemon != null)
                    {
                        this.menuController.SetDetailsPokemon(controllerPokemon);
                    }
                });

                controller.OnClick.AddListener(() =>
                {
                    menuController.PartyPokemonClicked(index);
                });
            }
        }
Exemplo n.º 2
0
        public void SetUp(StorageSystemMenuController menuController)
        {
            this.menuController = menuController;

            TrySetUp();
        }
Exemplo n.º 3
0
 public void SetMenuController(StorageSystemMenuController menuController)
 {
     this.menuController = menuController;
 }