private void CallbackOnDeployed(PropertyAnimationManager.EndPropertyState state) { if (state == PropertyAnimationManager.EndPropertyState.Targ) { toBeActivated = true; } else if (state == PropertyAnimationManager.EndPropertyState.Keep) { toBounceBack = true; } }
private void CallbackOnEachFrame(PropertyAnimationManager.EndPropertyState state) { if (state == PropertyAnimationManager.EndPropertyState.Keep) { durLeft -= durTemp; durTemp = 0f; Vector3 pos = param.transformMarkShooter.position; PropertyAnimationManager.GetInstance().StartAnimatingPropertyVector3(param.mark.transform, "position", (val) => { param.mark.transform.position = val; }, () => { return(param.mark.transform.position); }, param.mark.transform.position, param.transformMarkShooter.position, durLeft, null, null, null, CallbackOnEachFrame); } else if (state == PropertyAnimationManager.EndPropertyState.Targ) { toEnd = true; } else { Debug.LogError("不可能存在Src的啊"); } }