Esempio n. 1
0
    private void Awake()
    {
        rb = GetComponent <Rigidbody2D>();
        HoleSpawner hs = FindObjectOfType <HoleSpawner>();

        if (Mode == ControlMode.KB)
        {
            hs.MaxSpawnSpeed = 15;
        }
        else
        {
            hs.MaxSpawnSpeed = 10;
        }
    }
Esempio n. 2
0
 // Start is called before the first frame update
 void Awake()
 {
     c = GetComponent <Text>();
     UpdateAngle();
     hs = FindObjectOfType <HoleSpawner>();
 }