Exemplo n.º 1
0
 public SceneConfig(SceneTypeEnum sceneTypeEnum, DataTypeEnum dataType,
                    DisplayBehaviorEnum displayBehavior, DestoryBehaviorEnum destoryBehavior,
                    SubCutEffectTypeEnum subEffect,
                    DaoTypeEnum daoTypeEnum, float durTime)
 {
     _sceneType       = sceneTypeEnum;
     _subEffect       = subEffect;
     _dataType        = dataType;
     _durTime         = durTime;
     _displayBehavior = displayBehavior;
     _destoryBehavior = destoryBehavior;
     _daoTypeEnum     = daoTypeEnum;
     isKinect         = 0;
 }
Exemplo n.º 2
0
 public static CutEffectDestoryBehavior GetBehavior(DestoryBehaviorEnum displayBehaviorEnum)
 {
     if (displayBehaviorEnum == DestoryBehaviorEnum.Fade)
     {
         return(new FadeOutDestoryBehavior());
     }
     else if (displayBehaviorEnum == DestoryBehaviorEnum.FallDown)
     {
         return(new FallDownDestoryBehavior());
     }
     else
     {
         return(null);
     }
 }