Ejemplo n.º 1
0
    public static ShootController StartChecking(GameObject addComponentAt, ShootingType shootingType)
    {
        if (addComponentAt.GetComponent <ShootController>())
        {
            return(null);
        }

        ShootController shootController = addComponentAt.AddComponent <ShootController>();

        shootController.Execute(shootingType);

        return(shootController);
    }