Import 2D Level

This commit is contained in:
2026-04-30 00:53:30 +02:00
parent c67979c7cf
commit 5797038baf
479 changed files with 430785 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.
@@ -0,0 +1,15 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 202bcf9199fa7e9469c84771f0ab98e5, type: 3}
m_Name: TutorialCallbacks
m_EditorClassIdentifier:
TokenToSelect: {fileID: 0}
@@ -0,0 +1,59 @@
using UnityEngine;
using Unity.Tutorials.Core.Editor;
using UnityEditor;
namespace Unity.Tutorials
{
/// <summary>
/// Implement your Tutorial callbacks here.
/// </summary>
public class TutorialCallbacks : ScriptableObject
{
public GameObject TokenToSelect;
/// <summary>
/// Selects a GameObject in the scene, marking it as the active object for selection
/// </summary>
/// <param name="futureObjectReference"></param>
public void SelectSpawnedGameObject(FutureObjectReference futureObjectReference)
{
if (futureObjectReference.SceneObjectReference == null) { return; }
SelectGameObject(futureObjectReference.SceneObjectReference.ReferencedObjectAsGameObject);
}
public void SelectGameObject(GameObject gameObject)
{
if (!gameObject) { return; }
Selection.activeObject = gameObject;
}
public void SelectToken()
{
if (!TokenToSelect)
{
TokenToSelect = GameObject.FindGameObjectWithTag("TutorialRequirement");
if (!TokenToSelect)
{
Debug.LogErrorFormat("A TokenInstance with the tag '{0}' must be in the scene in order to make this tutorial work properly. Please add the tag {0} to one of your tokens in the scene", "TutorialRequirement");
return;
}
}
SelectGameObject(TokenToSelect);
}
public void SelectMoveTool()
{
Tools.current = Tool.Move;
}
public void SelectRotateTool()
{
Tools.current = Tool.Rotate;
}
public void StartTutorial(Tutorial tutorial)
{
TutorialWindowUtils.StartTutorial(tutorial);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB