private void Awake() { transform = GetComponent <Transform>(); score = DB.Data.Score; score.UpdateScore(); subscriber = score.OnDataChanged.Subscribe(SetData); addingScore = ScoreBy1Time / 2; CoroutineT.InfiniteBefore(AddScore, frequencyOfAddingScore).Start(this); CoroutineT.InfiniteBefore(UpdateScore, frequencyOfUpdatingScore).Start(this); CoroutineT.InfiniteBefore(IncreaseScoreBy1Time, 10).Start(this); }
public void Repool() { accelerate = (transform.position.x < 0 ? 1 : -1) * Mathf.Abs(accelerate); StopAllCoroutines(); CoroutineT.InfiniteBefore(Shoot, reloadTime).Start(this); }
public void Repool() { accelerate.x = (transform.position.x < 0 ? 1 : -1) * Mathf.Abs(accelerate.x); StopAllCoroutines(); CoroutineT.InfiniteBefore(arrowsPool.PoolObject, reloadTime).Start(this); }
private void Start() { CoroutineT.InfiniteBefore(Animate, animatedTime).Start(this); }
public void Repool() { accelerate.x = (transform.position.x < 0 ? 1 : -1) * Mathf.Abs(accelerate.x); StopAllCoroutines(); CoroutineT.InfiniteBefore(plungerBulletsPool.PoolObject, shootingReload).Start(this); }