コード例 #1
0
ファイル: GrabManager.cs プロジェクト: apernotlopes/ludum5a7
    void Awake()
    {
        if (_instance != null)
        {
            Destroy(this.gameObject);
            return;
        }

        Cursor.SetCursor(cursorsImage[0], Vector3.zero, CursorMode.ForceSoftware);

        _instance = this;
        _instance.Initialize();
        DontDestroyOnLoad(_instance.gameObject);
    }