Beispiel #1
0
 private void CacheComponents()
 {
     stickmanEvents       = GetComponent <StickmanEvents>();
     enemyAnimationEvents = GetComponent <EnemyAnimationEvents>();
     splineFollower       = GetComponent <SplineFollower>();
     splineProjector      = GetComponent <SplineProjector>();
 }
Beispiel #2
0
    private IEnumerator Effect(StickmanEvents stickmanEvents)
    {
        stickmanEvents.OnMultiplySpeed(GameConstants.nitroMultiplier);
        stickmanEvents.OnNitroAnimation();

        yield return(new WaitForSeconds(GameConstants.nitroTime));

        stickmanEvents.OnMultiplySpeed(1f);
    }
Beispiel #3
0
 public void Play(StickmanEvents stickmanEvents)
 {
     stickmanEvents.OnMultiplySpeed(speedBoost);
 }
Beispiel #4
0
 public void Stop(StickmanEvents stickmanEvents)
 {
     stickmanEvents.OnMultiplySpeed(1f);
 }
Beispiel #5
0
 private void CacheComponents()
 {
     stickmanEvents       = GetComponent <StickmanEvents>();
     enemyRailwaySwitcher = GetComponent <EnemyRailwaySwitcher>();
 }
Beispiel #6
0
 private void CacheComponents()
 {
     stickmanEvents = GetComponent <StickmanEvents>();
     animator       = GetComponentInChildren <Animator>();
     warpEffect     = EffectsHolder.Instance.warpVFX.GetComponent <ParticleSystem>();
 }
Beispiel #7
0
 public void Trigger(StickmanEvents stickmanEvents)
 {
     StartCoroutine(Effect(stickmanEvents));
     DestroyAnimation();
 }
Beispiel #8
0
 private void CacheComponents()
 {
     stickmanEvents       = GetComponentInParent <StickmanEvents>();
     enemyAnimationEvents = GetComponentInParent <EnemyAnimationEvents>();
 }
Beispiel #9
0
 private void CacheComponents()
 {
     stickmanEvents  = GetComponent <StickmanEvents>();
     follower        = GetComponent <SplineFollower>();
     enemyActivation = GetComponent <EnemyActivation>();
 }
Beispiel #10
0
 public void Initiate(StickmanEvents stickmanEvents)
 {
     stickmanEvents.OnChangeSpeed(2.0f);
     DestroyAnimation(stickmanEvents.transform.position);
 }
Beispiel #11
0
 private void Awake()
 {
     stickmanEvents = GetComponent <StickmanEvents>();
     camera         = FindObjectOfType <CinemachineVirtualCamera>();
 }
Beispiel #12
0
 private void Awake()
 {
     stickmanEvents = GetComponent <StickmanEvents>();
 }