14 lines
331 B
C#
14 lines
331 B
C#
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;
|
|
}
|
|
}
|