Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     char_RigidBody = GetComponent <Kinematic>();
     //seek = GetComponent<DynoSeek>();
     arrive = GetComponent <DynoArrive>();
     align  = GetComponent <DynoAlign>();
 }
Exemplo n.º 2
0
        // Use this for initialization
        void Start()
        {
            char_RigidBody = GetComponent <Kinematic>();
            //seek = GetComponent<DynoSeek>();
            arrive = GetComponent <DynoArrive>();
            align  = GetComponent <DynoAlign>();
            /*record and write out speed on timer*/
            StartTime = Time.time;
            FileName  = "DynoTimer.txt";
            System.IO.File.WriteAllText(@"C:\Grad School\AI\A1\" + FileName, "0");
            AppearanceRate       = 0.1f;
            LastDroppedCrumb     = 0.0f;
            bHasGoal             = false;
            ds_wander            = new DynoSteering();
            toCenterWanderCircle = 10;
            wanderCircleRad      = 5;


            UpperBoundX = -125;
            LowerBoundX = -175;
            UpperBoundZ = 40;
            LowerBoundZ = -10;

            SafeZoneGoalScript = GetComponent <Goal>();
        }