| using UnityEngine;  | 
| using System.Collections;  | 
|   | 
| public class FacingMainCamera : MonoBehaviour  | 
| {  | 
|     public static Transform mainCemaraTransform;  | 
|   | 
|     private void LateUpdate()  | 
|     {  | 
|         if (mainCemaraTransform == null)  | 
|         {  | 
|             if (CameraController.Instance != null && CameraController.Instance.CameraObject != null)  | 
|             {  | 
|                 mainCemaraTransform = CameraController.Instance.CameraObject.transform;  | 
|             }  | 
|             else  | 
|             {  | 
|                 return;  | 
|             }  | 
|         }  | 
|   | 
|         this.transform.forward = (this.transform.position - mainCemaraTransform.position).normalized;  | 
|     }  | 
|   | 
| }  | 
|   |