Added player character and step in/out of dialogue in scene 101
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
namespace UnityEngine.ProBuilder
|
||||
{
|
||||
sealed class MeshHandle
|
||||
{
|
||||
Transform m_Transform;
|
||||
Mesh m_Mesh;
|
||||
|
||||
public Mesh mesh
|
||||
{
|
||||
get { return m_Mesh; }
|
||||
}
|
||||
|
||||
public MeshHandle(Transform transform, Mesh mesh)
|
||||
{
|
||||
m_Transform = transform;
|
||||
m_Mesh = mesh;
|
||||
}
|
||||
|
||||
public void DrawMeshNow(int submeshIndex)
|
||||
{
|
||||
if (m_Transform == null || m_Mesh == null)
|
||||
return;
|
||||
|
||||
Graphics.DrawMeshNow(m_Mesh, m_Transform.localToWorldMatrix, submeshIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user