Ejemplo n.º 1
0
    void SwitchBehavior()
    {
        Array values = Behaviors.GetValues(typeof(Behaviors));

        state         = (Behaviors)Rand.ChooseOne(values);
        behaviorTimer = Rand.Range(behaviorTimerMin, behaviorTimerMax);
        print("My state is: " + state.ToString() + ", Next behavior in " + behaviorTimer + " seconds");
    }