Exemplo n.º 1
0
    /// <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);
    }
Exemplo n.º 2
0
    /// <summary>
    /// Register the late update callback.
    /// </summary>

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