Esempio n. 1
0
        /// <summary>
        /// 播放动作
        /// </summary>
        /// <param name="name"></param>
        /// <param name="wrap"></param>
        /// <param name="speed"></param>
        /// <param name="mode"></param>
        public virtual void Play(string name, WrapMode wrap, float speed, PLAY_MODE mode)
        {
            if (this.animation == null || this.animation[name] == null)
            {
                return;
            }

            this.animation[name].wrapMode = wrap;
            this.animation[name].speed    = speed;

            switch (mode)
            {
            case PLAY_MODE.CROSS_FADE:
                this.animation.CrossFade(name);
                break;

            case PLAY_MODE.PLAY:
                this.animation.Play(name);
                break;

            case PLAY_MODE.BLEND:
                this.animation.Blend(name);
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
 //オセロのシステム起動
 public void Game_start(PLAY_MODE mode)
 {
     ui_turn.SetActive(true);
     ui_wait.SetActive(false);
     if (mode == PLAY_MODE.single)
     {
         //シングルプレイの処理
         single_play_start();
     }
     else if (mode == PLAY_MODE.multi)
     {
         //マルチプレイの処理
         multi_play_start();
     }
     else
     {
         Debug.LogError("mode選びミスってませんか?");
     }
 }
Esempio n. 3
0
    void SetChangeModeText(PLAY_MODE playMode)
    {
        switch (playMode)
        {
        case PLAY_MODE.NORMAL:
            ChangeModeText.text        = "NORMAL";
            ChangeModeText.color       = Color.green;
            Btn_NewGameText.color      = Color.white;
            NewGameButton.interactable = true;
            break;

        case PLAY_MODE.TRUE:
            ChangeModeText.text        = "TRUE HERO";
            ChangeModeText.color       = Color.cyan;
            Btn_NewGameText.color      = Color.gray;
            NewGameButton.interactable = false;
            break;

        default:
            ChangeModeText.text  = "NORMAL";
            ChangeModeText.color = Color.green;
            break;
        }
    }
Esempio n. 4
0
 /// <summary>
 /// 设置流播放的模式。必须在播放之前设置
 /// </summary>
 /// <param name="nPort">播放器通道号</param>
 /// <param name="nMode">播放模式</param>
 /// <returns>true:成功;false:失败</returns>
 public static bool DHSetStreamOpenMode(int nPort, PLAY_MODE nMode)
 {
     bool returnValue = false;
     returnValue = PLAY_SetStreamOpenMode(nPort, (uint)nMode);
     DHThrowLastError(nPort);
     return returnValue;
 }
Esempio n. 5
0
	void LoadReleased() { 
		if (isLoadPressed)
			PlayMobe = PLAY_MODE.LOAD_GAME;
			isLoadPressed = false;
	}
Esempio n. 6
0
	void NewReleased() { 
		if (isNewPressed)
			PlayMobe = PLAY_MODE.NEW_GAME;
			isNewPressed = false;
	}