// Start is called before the first frame update void Start() { circleCollider = GetComponent <CircleCollider2D>(); waitForStartScript = ScriptableObject.CreateInstance <WaitForStart>(); endGameScript = ScriptableObject.CreateInstance <EndGame>(); GameObject.FindGameObjectWithTag("Music").GetComponent <MusicHandler>().PlayMusic(); }
// Start is called before the first frame update void Start() { tilemap = GameObject.Find("Tilemap").GetComponent <Tilemap>(); spawnBulletScript = ScriptableObject.CreateInstance <SpawnBullet>(); waitForStartScript = ScriptableObject.CreateInstance <WaitForStart>(); checkModeScript = ScriptableObject.CreateInstance <ModeHandler>(); endGameScript = ScriptableObject.CreateInstance <EndGame>(); mouseUp = false; }
// Start is called before the first frame update void Start() { waitForStartScript = ScriptableObject.CreateInstance <WaitForStart>(); scoreHandlerScript = ScriptableObject.CreateInstance <ScoreHandler>(); timeTextComponent = GameObject.Find("Time").GetComponent <Text>(); scoreTextComponent = GameObject.Find("Score").GetComponent <Text>(); endGameScript = ScriptableObject.CreateInstance <EndGame>(); timeLeft = timeLimit; }
// Start is called before the first frame update void Start() { waitForStartScript = ScriptableObject.CreateInstance <WaitForStart>(); }