Beispiel #1
0
    void OnDrawGizmosSelected()
    {
        Vector2 rotVec = VectorEx.AngleToVector((checkpointRotation + transform.localEulerAngles.y + 180.0f) * Mathf.Deg2Rad);

        GizmoEx.DrawNormal(transform.position + checkpointOffset, new Vector3(rotVec.x, 0f, rotVec.y), 1f);
    }
Beispiel #2
0
    void OnDrawGizmosSelected()
    {
        Vector2 rotVec = VectorEx.AngleToVector(spawnRotation - 180f);

        GizmoEx.DrawNormal(transform.position, new Vector3(rotVec.x, 0f, rotVec.y), 2f);
    }