Exemplo n.º 1
0
 public UncollectHiveAction(Hive hive, BeeHoneyData beeHoneyData, UnityAction onEnd, UnityAction onCancel)
 {
     _hive         = hive;
     _beeHoneyData = beeHoneyData;
     OnEnd.AddListener(onEnd);
     OnCancel.AddListener(onCancel);
 }
Exemplo n.º 2
0
 public CollectFlowerAction(Flower flower, BeeHoneyData beeHoneyData, UnityAction onEnd, UnityAction onCancel)
 {
     _flower       = flower;
     _beeHoneyData = beeHoneyData;
     OnEnd.AddListener(onEnd);
     OnCancel.AddListener(onCancel);
 }
Exemplo n.º 3
0
 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);
     }
 }