コード例 #1
0
    void Start()
    {
        Application.targetFrameRate = 60;
        if (LevelManager.Instance != null)
        {
            Destroy(gameObject);
            return;
        }
        else
        {
            DontDestroyOnLoad(gameObject);
            Instance = this;
        }
        DontDestroyOnLoad(Fogger);
        Fogger = GameObject.Find("FogCanvas").transform.Find("ScreenFogger").GetComponent <ScreenFogger>();
        Whiter = GameObject.Find("FogCanvas").transform.Find("ScreenWhiter").GetComponent <ScreenWhiter>();

        LightTotems();
    }
コード例 #2
0
 void Start()
 {
     Instance = this;
 }