public UncollectHiveAction(Hive hive, BeeHoneyData beeHoneyData, UnityAction onEnd, UnityAction onCancel) { _hive = hive; _beeHoneyData = beeHoneyData; OnEnd.AddListener(onEnd); OnCancel.AddListener(onCancel); }
public CollectFlowerAction(Flower flower, BeeHoneyData beeHoneyData, UnityAction onEnd, UnityAction onCancel) { _flower = flower; _beeHoneyData = beeHoneyData; OnEnd.AddListener(onEnd); OnCancel.AddListener(onCancel); }
public MoveAction(float movingSpeed, float rotateSpeed, Transform targetTransform, UnityAction onEnd, UnityAction onCancel = null, Func <bool> checkToCancel = null) { _movingSpeed = movingSpeed; _rotateSpeed = rotateSpeed; _targetTransform = targetTransform; _checkToCancel = checkToCancel; OnEnd.AddListener(onEnd); if (onCancel != null) { OnCancel.AddListener(onCancel); } }