コード例 #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);
 }
コード例 #4
0
 public void Offset(Vector3 target, float duration)
 {
     offsetTween.StartTween(offset.localPosition, target, duration);
 }