Exemplo n.º 1
0
 public void Start()
 {
     wallSensors   = sensors.wallSensors;
     vision        = sensors.visionSensor;
     harpoonSensor = sensors.harpoonSensor;
     EnvironmentManager.ActiveFishes.Add(gameObject);
 }
Exemplo 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);
 }
Exemplo 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;
 }
Exemplo n.º 4
0
 void Start()
 {
     movement.Throttle = 1f;
     proximitySensor   = shipSensors.visionSensor;
     wallSensors       = shipSensors.wallSensors;
 }
Exemplo n.º 5
0
 // Start is called before the first frame update
 void Start()
 {
     wallSensors = sensors.wallSensors;
     vision      = sensors.visionSensor;
 }