예제 #1
0
파일: EndGame.cs 프로젝트: micromic5/Roller
 void Start()
 {
     stomach = playerData.getStomach();
     stomach.registerSubscriber(this);
     if (score == null)
     {
         score = GameObject.FindObjectOfType <Score>();
     }
 }
예제 #2
0
 void Start()
 {
     stomach.registerSubscriber(this);
     InvokeRepeating("decreaseStomach", 4.0f, 4.0f);
 }