|
|
@ -43,7 +43,7 @@ public class Catapult : MonoBehaviour |
|
|
|
|
|
|
|
public void searchlightStateChanged() |
|
|
|
{ |
|
|
|
LeanTween.cancel(splineObjectTranslate.ObjectToManipulate.parent.gameObject, true); |
|
|
|
LeanTween.cancel(splineObjectTranslate.ObjectToManipulate.gameObject, true); |
|
|
|
if (Searchlight.state == Searchlight.SearchState.Chasing) |
|
|
|
launchBoulder(); |
|
|
|
} |
|
|
@ -57,7 +57,7 @@ public class Catapult : MonoBehaviour |
|
|
|
} |
|
|
|
|
|
|
|
isLaunching = true; |
|
|
|
LeanTween.delayedCall(splineObjectTranslate.ObjectToManipulate.parent.gameObject, timeBetweenLaunches, ()=>{ |
|
|
|
LeanTween.delayedCall(splineObjectTranslate.ObjectToManipulate.gameObject, timeBetweenLaunches, ()=>{ |
|
|
|
if (Searchlight.state != Searchlight.SearchState.Chasing) |
|
|
|
{ |
|
|
|
isLaunching = false; |
|
|
|