コード例 #1
0
    void Start()
    {
        circle     = GameObject.FindWithTag("Circle");
        GameManag  = GameObject.Find("GameManager");
        hitsScript = GameManag.GetComponent <GameManagers>();
        MCanvas    = GameObject.Find("MainCanvas");

        Vibration.Init();
    }
コード例 #2
0
    // Use this for initialization
    void Awake()
    {
        Application.runInBackground = true;

        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);
    }