예제 #1
0
    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);
    }
예제 #2
0
 public void Repool()
 {
     accelerate = (transform.position.x < 0 ? 1 : -1) * Mathf.Abs(accelerate);
     StopAllCoroutines();
     CoroutineT.InfiniteBefore(Shoot, reloadTime).Start(this);
 }
예제 #3
0
 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);
 }
예제 #5
0
 public void Repool()
 {
     accelerate.x = (transform.position.x < 0 ? 1 : -1) * Mathf.Abs(accelerate.x);
     StopAllCoroutines();
     CoroutineT.InfiniteBefore(plungerBulletsPool.PoolObject, shootingReload).Start(this);
 }