示例#1
0
 // 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();
 }
示例#2
0
 // 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;
 }
示例#3
0
文件: GUI.cs 项目: JWaters02/Backfire
    // 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;
    }
示例#4
0
 // Start is called before the first frame update
 void Start()
 {
     waitForStartScript = ScriptableObject.CreateInstance <WaitForStart>();
 }