コード例 #1
0
    void Start()
    {
        state = GameObject.Find("_GM").GetComponent <_GM_Script>();
        scene = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>();
        loc   = GameObject.Find("LocationController").GetComponent <LocationControllerScript>();

        StartCoroutine(CheckSaveLoad());
    }
コード例 #2
0
    // Start is called before the first frame update
    void Start()
    {
        count   = 0;
        waiting = false;
        gm      = GameObject.Find("_GM").GetComponent <_GM_Script>();
        loc     = GameObject.Find("LocationController").GetComponent <LocationControllerScript>();
        scene   = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>();
        bubble  = GameObject.Find("PlayerBubble").GetComponent <Animator>();
        player  = GameObject.Find("Player").GetComponent <PlayerScript>();
        gs      = GameObject.Find("GameStatus").GetComponent <GameStatusScript>();

        player.PlayerLoc = 5;

        hidethis.SetActive(false);
    }
コード例 #3
0
ファイル: LocationScript.cs プロジェクト: tksuplex/PHH_Code
 private void Start()
 {
     loc = GameObject.Find("LocationController").GetComponent <LocationControllerScript>();
 }