コード例 #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);
 }
コード例 #4
0
 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);
 }