コード例 #1
0
 public void Start()
 {
     wallSensors   = sensors.wallSensors;
     vision        = sensors.visionSensor;
     harpoonSensor = sensors.harpoonSensor;
     EnvironmentManager.ActiveFishes.Add(gameObject);
 }
コード例 #2
0
ファイル: ShipHybrid.cs プロジェクト: joaocmd/AASMA-Proj
 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);
 }
コード例 #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;
 }
コード例 #4
0
ファイル: Ship.cs プロジェクト: joaocmd/AASMA-Proj
 void Start()
 {
     movement.Throttle = 1f;
     proximitySensor   = shipSensors.visionSensor;
     wallSensors       = shipSensors.wallSensors;
 }
コード例 #5
0
 // Start is called before the first frame update
 void Start()
 {
     wallSensors = sensors.wallSensors;
     vision      = sensors.visionSensor;
 }