private void _SensorCorpoEntrou(Node corpo) { if (corpo is Vivo) { Vivo vivo = (Vivo)corpo; vivo.Morte(); } }
private void _AddJogador() { Godot.Collections.Array array = GetTree().GetNodesInGroup("Jogador"); if (array != null) { Vivo vivo = (Vivo)array[0]; vivo.AddMoeda(); } }
static void Main(string[] args) { //AbtractionClass //Handphone handphone; //Console.WriteLine(); //handphone = new Samsung(); //handphone.Buatan(); //Console.WriteLine(); //handphone = new Vivo(); //handphone.Buatan(); //Console.WriteLine(); //handphone = new Xiaomi(); //handphone.Buatan(); //Interface IHandphone handphone; ILokasi lokasi; handphone = new Samsung(); handphone.Buatan(); lokasi = new Samsung(); lokasi.Kota(); Console.WriteLine(); handphone = new Vivo(); handphone.Buatan(); lokasi = new Vivo(); lokasi.Kota(); Console.WriteLine(); handphone = new Xiaomi(); handphone.Buatan(); lokasi = new Xiaomi(); lokasi.Kota(); Console.ReadKey(); }
/// <summary> /// 是否为刘海屏设备 /// </summary> /// <param name="activity"></param> /// <returns></returns> public static bool?IsNotch(Activity activity) { if (Build.VERSION.SdkInt >= BuildVersionCodes.P) { return(activity?.Window?.DecorView.RootWindowInsets?.DisplayCutout != null); } else if (AndroidROM.Current.IsMIUI) { return(MI.IsNotch()); } else if (AndroidROM.Current.IsEMUI) { return(HUAWEI.HasNotchInScreen(activity)); } else if (AndroidROM.Current.IsColorOS) { return(OPPO.IsNotch(activity)); } else if (AndroidROM.Current.IsFuntouchOS) { return(Vivo.IsNotch(activity)); } return(null); }
public void Vivo() { var workflow = new Vivo(); workflow.FullFlow(chromeDriver); }