mirror of
https://github.com/appen-isen/jeu-sans-image.git
synced 2026-01-18 16:47:37 +01:00
9 lines
269 B
C#
9 lines
269 B
C#
using UnityEngine;
|
|
|
|
public class EarsController : MonoBehaviour
|
|
{
|
|
public void RotateHead(Vector3 rotation) {
|
|
transform.localEulerAngles = new Vector3(rotation.x, 0, rotation.z);
|
|
// More advanced rotation would require another rotation center
|
|
}
|
|
} |