示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     playBlock = FindObjectOfType <BerryCatchingAndMath>();
     if (playBlock)
     {
         speed = playBlock.speed;
     }
     else
     {
         speed = FindObjectOfType <PlayBlockBreakerAndHangman>().speed;
     }
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     BerryCatchingAndMath = FindObjectOfType <BerryCatchingAndMath>();
 }