Added player character and step in/out of dialogue in scene 101

This commit is contained in:
2026-08-15 15:22:47 +02:00
parent a42f25d5fa
commit 38ba2b0eff
2019 changed files with 181227 additions and 265 deletions
@@ -0,0 +1,30 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace UnityEngine.ProBuilder
{
abstract class EntityBehaviour : MonoBehaviour
{
[Tooltip("Allow ProBuilder to automatically hide and show this object when entering or exiting play mode.")]
public bool manageVisibility = true;
public abstract void Initialize();
public abstract void OnEnterPlayMode();
public abstract void OnSceneLoaded(Scene scene, LoadSceneMode mode);
protected void SetMaterial(Material material)
{
if (GetComponent<Renderer>())
GetComponent<Renderer>().sharedMaterial = material;
else
gameObject.AddComponent<MeshRenderer>().sharedMaterial = material;
}
// Not necessary because OnEnterPlayMode is operating on an instance of the scene, not the actual scene
// public abstract void OnExitPlayMode();
}
}