void LookAtCenter() { float y = -75; MyTransform.LookAt(new Vector3(0, y, 0), Vector3.up); MyTransform.SetLocalEulerAnglesX(MyTransform.localEulerAngles.x - 90f); }
void Start() { MyTransform.LookAt(new Vector3(0, -28.7f, 0), Vector3.up); MyTransform.SetLocalEulerAnglesX(MyTransform.localEulerAngles.x - 90f); }