forked from cgvr/DeltaVR
add models and use them in archery range minigame
This commit is contained in:
@@ -11,6 +11,7 @@ public class PushableButton : MonoBehaviour
|
||||
public bool startDown;
|
||||
public Transform movableParts;
|
||||
public float moveDuration = 0.25f;
|
||||
public float moveAmount = 0.05f;
|
||||
|
||||
public Transform wire;
|
||||
public Material wireActiveMaterial;
|
||||
@@ -23,7 +24,7 @@ public class PushableButton : MonoBehaviour
|
||||
private void Awake()
|
||||
{
|
||||
upPositionY = movableParts.localPosition.y;
|
||||
downPositionY = movableParts.localPosition.y - 0.1f;
|
||||
downPositionY = movableParts.localPosition.y - moveAmount;
|
||||
isButtonDown = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user