Exemplo n.º 1
0
        /// <summary>
        /// Non potendo mettere a inspector le action non di unity ho optato per uno switch
        /// </summary>
        public override void SetOnClickAction()
        {
            foreach (StatesActions _action in MyActions)
            {
                switch (_action)
                {
                case StatesActions.ActStartGame:
                    OnClickActions.Add(GameManager3D.instance.fSMManager.Act_StartGame);
                    break;

                default:
                    break;
                }
            }
        }
Exemplo n.º 2
0
        public override void SetOnClickAction()
        {
            foreach (Actions _action in MyActions)
            {
                switch (_action)
                {
                case Actions.Buy:
                    OnClickActions.Add(m_shop.CheckOutCart);
                    break;

                default:
                    break;
                }
            }
            MyItemDelegates.Add(UpdateItems); //Da spostare #####################################
        }