示例#1
0
    public void Start()
    {
        _target     = currentPosition.Value;
        _prevTarget = _target;
        if (!size.Contains(_target))
        {
            _target = new GridPosition();
            currentPosition.Value = _target;
        }

        currentPosition.AddListener(OnTargetChanged);
        _validationScheduled = true;
    }