Exemplo n.º 1
0
 public FlowNode(FLOW f)
 {
     _flow = f;
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        flow = EnemyBase.FLOW.INIT;

        mStep = 0;
        mTimer = 0;
    }
Exemplo n.º 4
0
 /// <summary>
 /// フローを再生
 /// </summary>
 public void playFlow()
 {
     if( flow == FLOW.INIT )
     {
         flow = FLOW.MOVE;
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// フローを初期化
 /// </summary>
 protected void initFlow()
 {
     flow = FLOW.INIT;
 }
Exemplo n.º 6
0
    // 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();
    }
Exemplo n.º 7
0
    // 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
    }
Exemplo n.º 8
0
 public void setTime()
 {
     mFlow = GameManager.FLOW.PLAY_TIME;
 }
Exemplo n.º 9
0
 public void setPlay()
 {
     mFlow = GameManager.FLOW.PLAY ;
 }
Exemplo n.º 10
0
 public void setGameOver()
 {
     mFlow = GameManager.FLOW.GAMEOVER ;
 }