/// <summary>
    /// Register the custom late update function.
    /// </summary>

    void Start()
    {
        mBaseRot = Quaternion.Euler(desiredPitch, 0f, 0f);
        mTrans   = transform;
        UpdateTransform(1f);
        SGUpdateManager.AddLateUpdate(0, this, OnLateUpdate);
    }
示例#2
0
    /// <summary>
    /// Register the late update callback.
    /// </summary>

    void Start()
    {
        SGUpdateManager.AddLateUpdate(4, this, OnLateUpdate);
    }