public void Inject(DolphinCore dolphinCore)
 {
     this.dolphinCore = dolphinCore;
 }
 public void Touch(DolphinCore dolphinCore)
 {
     dolphinCore.AddScore(score);
     Destroy(gameObject);
 }
Example #3
0
 public void Touch(DolphinCore dolphinCore)
 {
     dolphinCore.MakeHappy(happyTime);
     Destroy(gameObject);
 }
 public void Inject(DolphinCore dolphinCore)
 {
     this.UpdateAsObservable()
     .Subscribe(_ => transform.position = Vector3.Lerp(transform.position, dolphinCore.transform.position, Time.deltaTime * speed))
     .AddTo(this);
 }