예제 #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Return))
     {
         if (script.GetSize() <= 100.0f)
         {
             script.AddSize(1.0f);
         }
         else if (script.GetSize() >= 0.0f)
         {
             script.AddSize(-1.0f);
         }
     }
 }