コード例 #1
0
ファイル: IAmAudioFile.cs プロジェクト: ChubbsBunns/Polaris
    private void Awake()
    {
        gameDataLog = FindObjectOfType <GameDataLog>();
        if (gameDataLog.Log_wallStuffUnlocked)
        {
            gdlog_wallstuff = 1;
        }
        else if (gameDataLog.Log_wallStuffUnlocked == false)
        {
            gdlog_wallstuff = 0;
        }

        if (gameDataLog.Log_doubleJumpIsUnlocked)
        {
            gdlog_doublejump = 1;
        }

        else if (gameDataLog.Log_doubleJumpIsUnlocked)
        {
            gdlog_doublejump = 0;
        }

        if (gameDataLog.log_dashIsUnlocked)
        {
            gdlog_dash = 1;
        }

        else if (gameDataLog.log_dashIsUnlocked == false)
        {
            gdlog_dash = 0;
        }
    }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     gdLog  = FindObjectOfType <GameDataLog>();
     cm_cam = FindObjectOfType <CinemachineVirtualCamera>();
     Destroy(gdLog);
     Destroy(cm_cam);
     StartCoroutine(waitForAFewSeconds());
 }
コード例 #3
0
    void Start()
    {
        Debug.Log("7");
        playerObject = FindObjectOfType <PlayerController>();
        Debug.Log("8");
        gameDataLog = FindObjectOfType <GameDataLog>();

        PlayerInstantiateOrNot();
    }
コード例 #4
0
    private void Awake()
    {
        scenePortals = FindObjectsOfType <SceneLoader>();
        foreach (SceneLoader Portal in scenePortals)
        {
            Portal.FindMyObjects();
        }

        gameDataLog = FindObjectOfType <GameDataLog>();
    }
コード例 #5
0
 // Start is called before the first frame update
 void Awake()
 {
     gameDataLog = FindObjectOfType <GameDataLog>();
     gameDataLog.RefreshRevivePoint();
     vcamRefresh = FindObjectOfType <CameraFollowPlayer>();
     vcamRefresh.FollowPlayer();
     powerUp = FindObjectOfType <PowerUp>();
     if (powerUp = null)
     {
         return;
     }
 }
コード例 #6
0
 // Update is called once per frame
 void Update()
 {
     player      = FindObjectOfType <PlayerController>();
     gameDataLog = FindObjectOfType <GameDataLog>();
 }
コード例 #7
0
ファイル: dialogue.cs プロジェクト: ChubbsBunns/Polaris
 private void Awake()
 {
     text        = GetComponent <TMP_Text>();
     gameDataLog = FindObjectOfType <GameDataLog>();
 }
コード例 #8
0
 public void FindMyObjects()
 {
     playerObject = FindObjectOfType <PlayerController>();
     gameDataLog  = FindObjectOfType <GameDataLog>();
 }
コード例 #9
0
ファイル: mainPickUp.cs プロジェクト: ChubbsBunns/Polaris
 private void Start()
 {
     gameDataLog = FindObjectOfType <GameDataLog>();
 }