*
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user