예제 #1
0
        public static GameObject GetGameObject(string value, IIDData idData, IGameObjectData gameObjectData)
        {
            switch (value)
            {
            case "this":
                return(gameObjectData.GetGameObject());

            case "parent":
                var parent = gameObjectData.GetGameObject().transform.parent;
                return(parent != null ? parent.gameObject : null);

            default:
                return(idData.GetObjectByID(value));
            }
        }
예제 #2
0
 public GameObject GetGameObject()
 {
     return(gameObjectData.GetGameObject());
 }