Exemplo n.º 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));
            }
        }
Exemplo n.º 2
0
 public GameObject GetObjectByID(string id)
 {
     return(idData.GetObjectByID(id));
 }