public FlowNode(FLOW f) { _flow = f; }
/// <summary> /// フローを設定 /// </summary> /// <param name="flow"> /// A <see cref="FLOW"/> /// </param> protected void nextFlow( FLOW flow ) { if( flow == EnemyBase.FLOW.END ) { flow = FLOW.EXIT; } this.flow = flow; }
// Use this for initialization void Start() { flow = EnemyBase.FLOW.INIT; mStep = 0; mTimer = 0; }
/// <summary> /// フローを再生 /// </summary> public void playFlow() { if( flow == FLOW.INIT ) { flow = FLOW.MOVE; } }
/// <summary> /// フローを初期化 /// </summary> protected void initFlow() { flow = FLOW.INIT; }
// Update is called once per frame void Update() { if(maneger_Type == MANEGER_GAME ) { switch(mFlow) { case FLOW.WAITPLAY: { counter += Time.deltaTime; if( counter >= FIRST_COUNTER ) { mFlow = FLOW.PLAY; //GO eF } break; } case FLOW.PLAY: { if(PlayerManager.Instance.GetPlayerLife() == false) { if( gameOvertimer == 0 ) { GameObject bgmobj = GameObject.Find("Sound_BgmObj"); bgmobj.BroadcastMessage("StopBgm",SendMessageOptions.DontRequireReceiver); } gameOvertimer+=Time.deltaTime; if( gameOvertimer >= GAMEOVER_TIME_MAX ) { GameObject refObj = (GameObject)Resources.Load("Effect/Black"); GameObject gmo = (GameObject)Instantiate( refObj ); BlackBack data = (BlackBack)gmo.gameObject.GetComponent(typeof(BlackBack)); data.type = BlackBack.TYPE_GBO; GameObject viewobj = GameObject.Find( "2D" ); data.transform.parent = viewobj.transform; setGameOver(); Library.gameSave( mScore ); } } break; } case FLOW.GAMEOVER: { break; } } pointEffectCounter(); }else if(maneger_Type == MANEGER_TITLE ) { } soundMainus(); }
// Use this for initialization void Start() { thisInstance = this; mTwitter = (ATwitter)GetComponent(typeof(ATwitter)); //! ツイッター mFlow = GameManager.FLOW.WAITPLAY; mScore = 0; mReturn = 0; Application.targetFrameRate = 55; //READY EF if(maneger_Type == MANEGER_GAME ) { GameObject refObj = (GameObject)Resources.Load("Effect/READY2"); GameObject obj = (GameObject)Instantiate( refObj ); GameObject viewobj = GameObject.Find( "2D" ); obj.transform.parent = viewobj.transform; GameObject bgmobj = GameObject.Find("Sound_BgmObj"); bgmobj.BroadcastMessage("StartBgm",SendMessageOptions.DontRequireReceiver); } //150 130 }
public void setTime() { mFlow = GameManager.FLOW.PLAY_TIME; }
public void setPlay() { mFlow = GameManager.FLOW.PLAY ; }
public void setGameOver() { mFlow = GameManager.FLOW.GAMEOVER ; }