示例#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>();
 }