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

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

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