예제 #1
0
    void Start()
    {
        //        Log("Method");
        //        Log("Getter");
        //        Log("Field");
        //        Log("transform");
        Debug.Log(UnityPathResolver.Resolve(this, "(c)(c2((x))/Sphere)[Renderer].material.color"));
        //        Debug.Log(UnityPathResolver.Resolve(this, "(((x))/Sphere)"));
        var c = new SerializedConfig();

        c.AsTransform.MoveTo(Vector3.down, EasingType.BackIn);

        YieldBase.Get <WaitTimeOrCondition>().Override(onUpdated: (me) =>
        {
            transform.position = Vector3.Lerp(Vector3.zero, Vector3.down, me.EasedValue);
        });
    }
예제 #2
0
 public static object Resolve(object o, string path)
 {
     return(UnityPathResolver.Resolve(o, new UnityPathResolver(path).PathParts));
 }