Ejemplo n.º 1
0
 public void Start()
 {
     wallSensors   = sensors.wallSensors;
     vision        = sensors.visionSensor;
     harpoonSensor = sensors.harpoonSensor;
     EnvironmentManager.ActiveFishes.Add(gameObject);
 }
Ejemplo n.º 2
0
 void Start()
 {
     movement.Throttle = 1f;
     proximitySensor   = shipSensors.visionSensor;
     wallSensors       = shipSensors.wallSensors;
     environment       = GameObject.FindGameObjectWithTag("GameManager").GetComponent <EnvironmentManager>();
     // bootstrap intention and tell other ships I'm here
     TryFindWhale(true);
 }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     closestShip     = null;
     previousHarpoon = null;
     wallSensors     = sensors.wallSensors;
     vision          = sensors.visionSensor;
     harpoonSensor   = sensors.harpoonSensor;
     environment     = GameObject.FindGameObjectWithTag("GameManager").GetComponent <EnvironmentManager>();
     movement.Speed  = 1;
 }
Ejemplo n.º 4
0
 void Start()
 {
     movement.Throttle = 1f;
     proximitySensor   = shipSensors.visionSensor;
     wallSensors       = shipSensors.wallSensors;
 }
Ejemplo n.º 5
0
 // Start is called before the first frame update
 void Start()
 {
     wallSensors = sensors.wallSensors;
     vision      = sensors.visionSensor;
 }