25 lines
550 B
C#
25 lines
550 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace NBF
|
|
{
|
|
public class RopeLenghtTest : MonoBehaviour
|
|
{
|
|
public Rope Rope;
|
|
public float AddValue = 0.01f;
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.A))
|
|
{
|
|
// Rope.Retract(AddValue);
|
|
Rope.PopSpawnPoint();
|
|
}
|
|
|
|
if (Input.GetKeyDown(KeyCode.D))
|
|
{
|
|
// Rope.Extend(AddValue);
|
|
Rope.PushSpawnPoint();
|
|
}
|
|
}
|
|
}
|
|
} |