Exemplo n.º 1
0
    private void DrawIndicator(int i)
    {
        if (Time.time > Indicator.time[i])
        {
            return;
        }
        float     angle  = Indicator.AngleSigned(Camera.main.transform.forward, Indicator.pos[i] - this.goPlayer.transform.position, this.goPlayer.transform.up);
        Matrix4x4 matrix = GUI.matrix;

        GUIUtility.RotateAroundPivot(angle, this.v);
        GUI.DrawTexture(this.r, this.tIndicator);
        GUI.matrix = matrix;
    }