private void CacheComponents() { stickmanEvents = GetComponent <StickmanEvents>(); enemyAnimationEvents = GetComponent <EnemyAnimationEvents>(); splineFollower = GetComponent <SplineFollower>(); splineProjector = GetComponent <SplineProjector>(); }
private IEnumerator Effect(StickmanEvents stickmanEvents) { stickmanEvents.OnMultiplySpeed(GameConstants.nitroMultiplier); stickmanEvents.OnNitroAnimation(); yield return(new WaitForSeconds(GameConstants.nitroTime)); stickmanEvents.OnMultiplySpeed(1f); }
public void Play(StickmanEvents stickmanEvents) { stickmanEvents.OnMultiplySpeed(speedBoost); }
public void Stop(StickmanEvents stickmanEvents) { stickmanEvents.OnMultiplySpeed(1f); }
private void CacheComponents() { stickmanEvents = GetComponent <StickmanEvents>(); enemyRailwaySwitcher = GetComponent <EnemyRailwaySwitcher>(); }
private void CacheComponents() { stickmanEvents = GetComponent <StickmanEvents>(); animator = GetComponentInChildren <Animator>(); warpEffect = EffectsHolder.Instance.warpVFX.GetComponent <ParticleSystem>(); }
public void Trigger(StickmanEvents stickmanEvents) { StartCoroutine(Effect(stickmanEvents)); DestroyAnimation(); }
private void CacheComponents() { stickmanEvents = GetComponentInParent <StickmanEvents>(); enemyAnimationEvents = GetComponentInParent <EnemyAnimationEvents>(); }
private void CacheComponents() { stickmanEvents = GetComponent <StickmanEvents>(); follower = GetComponent <SplineFollower>(); enemyActivation = GetComponent <EnemyActivation>(); }
public void Initiate(StickmanEvents stickmanEvents) { stickmanEvents.OnChangeSpeed(2.0f); DestroyAnimation(stickmanEvents.transform.position); }
private void Awake() { stickmanEvents = GetComponent <StickmanEvents>(); camera = FindObjectOfType <CinemachineVirtualCamera>(); }
private void Awake() { stickmanEvents = GetComponent <StickmanEvents>(); }