コード例 #1
0
 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>();
 }
コード例 #2
0
ファイル: Matrices.cs プロジェクト: matrix09/Shaders
 void InitializeScripts()
 {
     pt = gameObject.GetComponent <PositionTransformation>();
     rt = gameObject.GetComponent <RotationTransformation>();
 }