24 lines
424 B
C#
24 lines
424 B
C#
using SHADE;
|
|
using System;
|
|
|
|
public class CameraFix : Script
|
|
{
|
|
|
|
private Transform tranform;
|
|
public Vector3 pos = Vector3.Zero;
|
|
public Vector3 rot = Vector3.Zero;
|
|
protected override void awake()
|
|
{
|
|
tranform = GetComponent<Transform>();
|
|
if (tranform == null)
|
|
Debug.LogError("tranform is NULL!");
|
|
else
|
|
{
|
|
tranform.LocalPosition = pos;
|
|
tranform.LocalEulerAngles = rot;
|
|
}
|
|
|
|
|
|
}
|
|
}
|