Added Observation Scene to show the Replay
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Unity.Cinemachine.Samples
|
||||
{
|
||||
[ExecuteInEditMode]
|
||||
public class Magnet : MonoBehaviour
|
||||
{
|
||||
[Range(0.1f, 50.0f)]
|
||||
public float Strength = 5.0f;
|
||||
|
||||
[Range(0.1f, 50.0f)]
|
||||
public float Range = 5.0f;
|
||||
|
||||
public Transform RangeVisualizer;
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (RangeVisualizer != null)
|
||||
RangeVisualizer.localScale = new Vector3(Range * 2.0f, Range * 2.0f, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user