public void Initialize(NavigationPoints patrol, IEnumerable <Transform> targets) { patrolPoints = patrol; GetNewNavPoint(); airVehicle.Initialize(this); airVehicle.Launch(); }
void Start() { screenCenter = new Vector3(Screen.width / 2, Screen.height / 2, 0); targetSystem = new TargetSystem(Camera.main, LockingLayer); healthBar.Initialize(ControlledPlane.VehicleHealth.BaseHitPoints); ControlledPlane.Initialize(this, healthBar.UpdateHp); }