コード例 #1
0
 public void Initialize(NavigationPoints patrol, IEnumerable <Transform> targets)
 {
     patrolPoints = patrol;
     GetNewNavPoint();
     airVehicle.Initialize(this);
     airVehicle.Launch();
 }
コード例 #2
0
        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);
        }