예제 #1
0
        void LookAtCenter()
        {
            float y = -75;

            MyTransform.LookAt(new Vector3(0, y, 0), Vector3.up);
            MyTransform.SetLocalEulerAnglesX(MyTransform.localEulerAngles.x - 90f);
        }
예제 #2
0
 void Start()
 {
     MyTransform.LookAt(new Vector3(0, -28.7f, 0), Vector3.up);
     MyTransform.SetLocalEulerAnglesX(MyTransform.localEulerAngles.x - 90f);
 }