示例#1
0
    private void ProcessSynapseHit(SynapseLocation synapseHitLocation)
    {
        Synapse synapseObject = this.allSynapses[synapseHitLocation];

        synapseObject.HitSynapse();

        switch (synapseObject.Mode)
        {
        case SynapseMode.OneTimePositive:
            this.ProcessOneTimePositiveHit(synapseHitLocation);
            break;

        case SynapseMode.OneTimeNegative:
            this.ProcessOneTimeNegativeHit(synapseHitLocation);
            break;

        case SynapseMode.Neutral:
            this.ProcessNeutralHit(synapseHitLocation);
            break;

        case SynapseMode.RepetitivePositive:
            this.ProcessRepetitivePositiveHit(synapseHitLocation);
            break;

        default:
            Debug.LogError("GameManager.ProcessSynapseHit: Unknown synapse mode");
            break;
        }
    }