protected virtual void Awake() { this.m_MeshFilter = this.GetComponent <MeshFilter>(); this.m_CameraTransform = this.GetComponent <CameraTransformation>(); this.transformation = this.m_CameraTransform.Matrix; this.m_Position = this.GetComponent <PositionTransformation>(); this.m_Rotation = this.GetComponent <RotationTransformation>(); this.transformations = this.GetComponents <Transformation>(); }
void InitializeScripts() { pt = gameObject.GetComponent <PositionTransformation>(); rt = gameObject.GetComponent <RotationTransformation>(); }