// Start is called before the first frame update void Start() { PS = GameObject.FindWithTag("Player").GetComponent <PlanetSpawn>(); if (gameObject.CompareTag("Groho")) { moveSpeed = ((int)(PS.Gametime / 15) * 0.1f) + 0.2f; PS.fixedtime = 0.4f / moveSpeed; } }
private void Awake() { planetSpawn = FindObjectOfType <PlanetSpawn>(); }