示例#1
0
        private void UpdateOutputScope(OutputTime outputTime)
        {
            switch (outputTime)
            {
            case OutputTime.Immediately:
            case OutputTime.OrderBumped:
                OutputScope = OutputScope.Order;
                break;

            case OutputTime.GroupBumped:
                OutputScope = OutputScope.Group;
                break;

            case OutputTime.ItemBumped:
                OutputScope = OutputScope.Item;
                break;
            }
        }
    private void Awake()
    {
        this.scriptBGMPlayer   = this.GetComponent <BGMPlayer>();
        this.scriptOutputScore = this.GetComponent <OutputScore>();
        this.scriptOutputTime  = this.GetComponent <OutputTime>();
        this.scriptOutputTips  = this.GetComponent <OutputTips>();
        this.scriptDestroyAll  = this.GetComponent <DestroyAll>();

        this.objectSEManager = GameObject.FindWithTag("SEManager");
        this.scriptSEManager = this.objectSEManager.GetComponent <SEManager>();

        this.rendererPlayer = this.objectPlayer.GetComponent <MeshRenderer>();
        this.rendererEnemy  = this.objectEnemy.GetComponent <MeshRenderer>();

        this.scriptEnemyManager = this.objectEnemy.GetComponent <EnemyManager>();

        isGameRunning    = true;
        currentWave      = 0;
        timerBeforeRetry = 0;
    }