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