Ejemplo n.º 1
0
 public void RunTypeChanged(eRunType i_RunType)
 {
     foreach (Action <eRunType> action in m_RunTypeChangedActions)
     {
         action.Invoke(i_RunType);
     }
 }
        public static IFacebookHandler Create(eRunType i_RunType)
        {
            IFacebookHandler facebookHandlerToReturn;

            switch (i_RunType)
            {
            case eRunType.Debug:
                facebookHandlerToReturn = new FacebookHandlerWithPopupDecorator(Singleton <FacebookHandler> .Instance);
                break;

            case eRunType.Release:
                facebookHandlerToReturn = Singleton <FacebookHandler> .Instance;
                break;

            default:
                throw new Exception("Ïnvalid value for run type!!");
            }

            return(facebookHandlerToReturn);
        }
Ejemplo n.º 3
0
 private void runTypeChanged(eRunType i_RunType)
 {
     m_FacebookHandler = FacebookHandlerFactory.Create(i_RunType);
 }