Example #1
0
    virtual protected void Start()
    {
        switch (path)
        {
        case BindingPath.COUNT:
            BindingSource = source.Count;
            break;

        case BindingPath.DAMAGE:
            BindingSource = source.Damage;
            break;

        case BindingPath.FREQUENCY:
            BindingSource = source.SpawnRate;
            break;

        case BindingPath.SPEED:
            BindingSource = source.AttackSpeed;
            break;

        default:
            throw new NotImplementedException(path.ToString());
        }
    }