예제 #1
0
    public void MoveTo(NodeScript target)
    {
        Vector3 v_target;

        if (target == null || !NodeGraphicManager.NodeIsVisible(target))
        {
            v_target = Random.onUnitSphere * 40;
        }
        else
        {
            v_target = NodeGraphicManager.GetGraphic(target).transform.position;
        }
        positionTween.StartTween(transform.position, v_target, GameManager.gameOptions.packetTravelTime);
    }
예제 #2
0
 public void ScaleMemory(Vector3 target, float duration)
 {
     scaleTween.StartTween(memory.localScale, target, duration);
 }
예제 #3
0
 public void MoveTo(Vector3 target, float duration)
 {
     positionTween.StartTween(transform.position, target, duration);
 }
 public void Offset(Vector3 target, float duration)
 {
     offsetTween.StartTween(offset.localPosition, target, duration);
 }