Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (!Available)
     {
         return;
     }
     // Debug.Log("#" + gameObject.GetHashCode() + ": pos " + gameObject.transform.position);
     if (gameObject.transform.position.y <= -10.0f)
     {
         Available = false;
         // notify
         Subjects.NotifyUpdate(Subject.Ball);
     }
 }
Example #2
0
 void Destory()
 {
     // notify
     Subjects.NotifyUpdate(Subject.Stage);
 }
Example #3
0
 protected override void PostAwake()
 {
     Available = true;
     // notify
     Subjects.NotifyUpdate(Subject.Ball);
 }
Example #4
0
 // Start is called before the first frame update
 void Start()
 {
     // notify
     Subjects.NotifyUpdate(Subject.Stage);
 }