示例#1
0
 void Awake()
 {
     transform      = gameObject.transform;
     player         = Core.instance.GetPlayer();
     cameraPosition = transform.Find("CameraPosition");
     profile        = playerProfile.camera;
 }
示例#2
0
文件: P_Camera.cs 项目: 9/Mazikeen
    // CAMERA SHAKE ###################
    void Awake()
    {
        Instance = this;

        // CAMERA SHAKE ###################
        if (camTransform == null)
        {
            camTransform = GetComponent(typeof(Transform)) as Transform;
        }
        // CAMERA SHAKE ###################
    }