using UnityEngine; using System.Collections; public static class GameObjectEx { public static Vector3 GetEulerAnglesLocal(this GameObject obj){ return obj.transform.localEulerAngles; } public static Vector3 SetEulerAnglesLocal(this GameObject obj, Vector3 angles){ return obj.transform.localEulerAngles = angles; } }