コード例 #1
0
 public override async Task EmergencyStop()
 {
     base.EmergencyStop();
     if (InPlanes[0] == null)
     {
         IsEmpety?.Invoke(this);
     }
 }
コード例 #2
0
        public override async Task Leave(Plane plane)
        {
            // leave the plane and open the leg

            // verific if contains this plane,
            // because if haven it dont open the leg
            if (InPlanes.Contains(plane))
            {
                InPlanes[0] = null;
                // in open  have to invoke is empety
                IsEmpety?.Invoke(this);
            }
        }