public static ShootController StartChecking(GameObject addComponentAt, ShootingType shootingType) { if (addComponentAt.GetComponent <ShootController>()) { return(null); } ShootController shootController = addComponentAt.AddComponent <ShootController>(); shootController.Execute(shootingType); return(shootController); }