using SHADE; using System; public class CameraFix : Script { public CameraFix(GameObject gameObj) : base(gameObj) { } private Transform tranform; public Vector3 pos = Vector3.Zero; public Vector3 rot = Vector3.Zero; protected override void awake() { tranform = GetComponent(); if (tranform == null) Debug.LogError("tranform is NULL!"); else { tranform.LocalPosition = pos; tranform.LocalEulerAngles = rot; } } }