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