Devin’s First Unity Program

Devin completed his first Unity program while taking the [Udemy Unity Course].

using UnityEngine;
using System.Collections;

public class NumberQizards : MonoBehaviour
{
    int max = 1000;
    int min = 1;
    int guess;

    // Use this for initialization
    void Start()
    {
        StartGame();
    }

    void StartGame ()
    {
        print("Pick a number in your head but dont tell me.");

        max = 1000;
        min = 1;
        guess = 500;

        print("The highist number you can pick is " + max);
        print("The lowest number you can pick is " + min);
        NextGuess();
    }

    void NextGuess()
    {
        print("Is the number higher or lower then " + guess + "?");
        print("Up arrow for higher , down arrow for lower");
    }
   
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.UpArrow))
        {
            min = guess;
            guess = Mathf.FloorToInt((max + min) / 2f);
            
            NextGuess();
        }

        else if (Input.GetKeyDown(KeyCode.DownArrow))
        {
            max = guess;
            guess = Mathf.CeilToInt((max + min) / 2f);

            NextGuess();
        }


        else if (Input.GetKeyDown(KeyCode.Return))
        {
            print("You won!");
            StartGame();
        }
    }
}

Ultimate FPS (UFPS)

I’ve been automating the setup using editor scripts for [UFPS : Ultimate FPS], a Unity package that provides a First-Person-Shooter platform. [Manual] [Forum]

When setting up characters, some guns have arms attached which necessitates needing to hide the existing player arms. The UFPS manual has a guide for the proper way to [hide arms and the head].

The Unity Asset Store also has [FPS Mesh Tool] which can also mask out the head and arms.

Ultimate FPS Bugs

I’ve been automating the setup using editor scripts for [UFPS : Ultimate FPS], a Unity package that provides a First-Person-Shooter platform. [Manual] [Forum]

>UFPS : Ultimate FPS

I’ve filed some support tickets for minor issues that I’ve been finding. Most people script for UFPS at runtime, and so I’m finding some edit time issues.

bug-vp-fpcontroller-addblocker
bug-vp-ragdollhandler-awake-could-be-more-descriptive-to-whats-missing
bug-vp-playerinventory-doaddunits-doesnt-update-the-count
bug-vp-playerinventory-reset-missing-null-check

Of course, to get things fixed tickets need to be created via `support@visionpunk.com`. So there’s no need to continue posting bugs on the forums.

how-to-post-a-support-ticket

Movement Animset Pro

[Movement Animset Pro] has a complete set of 179 motion capture animations.

Movement Animset Pro

Contains cool animations for such things as:

– Standing
– Walking
– Running
– Crouching / Sneaking
– Getting up from ground
– Jumping
– Falling
– Interactions (button pushing, picking up objects, levers etc.)
– Fist fighting
– Deaths and knockdowns
– Sitting
– Throwing

Project Tango

Project Tango has a Unity project for getting started with AI rebuilding your physical environment into meshes as you walk around.
https://developers.google.com/project-tango/apis/unity/unity-getting-started

The Verge reviews Project Tango –
http://www.theverge.com/2015/5/29/8687443/google-io-project-tango-augmented-reality

Purchase a Tango –
https://store.google.com/product/project_tango_tablet_development_kit