forked from cgvr/DeltaVR
printer input hole animation
This commit is contained in:
@@ -10,7 +10,6 @@ public class ComputerPrinter : MonoBehaviour
|
||||
public Transform ejectionDestination;
|
||||
public Printable printablePrefab;
|
||||
public float ejectionDuration = 1.0f;
|
||||
public int ignorePlayerCollisionLayer = 2;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
@@ -32,11 +31,6 @@ public class ComputerPrinter : MonoBehaviour
|
||||
|
||||
Printable printable = Instantiate(printablePrefab, ejectionOrigin.position, Quaternion.identity);
|
||||
printable.AttachTexture(generatedTexture);
|
||||
printable.gameObject.layer = ignorePlayerCollisionLayer;
|
||||
foreach (Transform childTrans in printable.transform.GetComponentInChildren<Transform>())
|
||||
{
|
||||
childTrans.gameObject.layer = ignorePlayerCollisionLayer;
|
||||
}
|
||||
|
||||
printable.transform.DOMove(ejectionDestination.position, ejectionDuration).OnComplete(() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user