Ejemplo n.º 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);
    }
Ejemplo n.º 2
0
 public void ScaleMemory(Vector3 target, float duration)
 {
     scaleTween.StartTween(memory.localScale, target, duration);
 }
Ejemplo n.º 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);
 }