コード例 #1
0
ファイル: EndBossShield.cs プロジェクト: Rameos/PSMG_Alarm
 void Start()
 {
     submarineLifeControl = GameObject.Find("Lifebar").GetComponent<SubmarineLifeControl>();
     bossScript = GameObject.Find("Endboss(Clone)").GetComponent<EndBoss>();
 }
コード例 #2
0
    void Start()
    {
        Screen.showCursor = false;
        timeElapsed = 0;

        coins = PlayerPrefsManager.GetCoins();
        blockWhenNoGazeData = PlayerPrefsManager.GetControl();
        GameObject.Find("Highscore").GetComponent<HighscoreScript>().UpdateCoins(coins);
        GameObject.Find("Highscore").GetComponent<HighscoreScript>().AddScoreValue(PlayerPrefsManager.GetScore());

        lifeControl = GameObject.FindGameObjectWithTag("MainGUI").GetComponent<SubmarineLifeControl>();
        movePlayer = GameObject.FindGameObjectWithTag("Player").GetComponent<MovePlayer>();
        shooting = GameObject.Find("gun").GetComponent<PlayerShooting>();
        powerUpSpawner = GameObject.Find("GameController").GetComponent<PowerUpSpawner>();
    }
コード例 #3
0
ファイル: EnemyRocketHit.cs プロジェクト: Rameos/PSMG_Alarm
 void Start()
 {
     submarineLifeControl = GameObject.FindObjectOfType(typeof(SubmarineLifeControl)) as SubmarineLifeControl;
 }
コード例 #4
0
ファイル: Enemy.cs プロジェクト: Rameos/PSMG_Alarm
    void Start()
    {
        life /= 2;
        life += PlayerPrefsManager.GetDifficulty() * life;
        camera2d = GameObject.Find("2D Camera");
        player = GameObject.FindGameObjectWithTag("Player");
        highscoreController = GameObject.FindObjectOfType(typeof(HighscoreScript)) as HighscoreScript;
        submarineLifeControl = GameObject.FindObjectOfType(typeof(SubmarineLifeControl)) as SubmarineLifeControl;

        targetLocation = GetNewTargetLocation();
        FindOtherObjects();
    }